File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ case object FnBinding extends Expression {
75
75
76
76
case class Declassify (expr : Expression , lbl : Label ) extends Expression {
77
77
def tpe = expr.tpe
78
- def serialize : String = expr.serialize
78
+ def serialize : String =
79
+ s " declassify( ${expr.serialize}, ${expr.lbl.serialize} to ${lbl.serialize}) "
79
80
def mapExpr (f : Expression => Expression ): Expression = this .copy(expr = f(expr))
80
81
def mapLabel (f : Label => Label ): Expression = this .copy(lbl = f(lbl))
81
82
def mapType (f : Type => Type ): Expression = this
@@ -84,7 +85,8 @@ case class Declassify(expr: Expression, lbl: Label) extends Expression {
84
85
85
86
case class Endorse (expr : Expression , lbl : Label ) extends Expression {
86
87
def tpe = expr.tpe
87
- def serialize : String = expr.serialize
88
+ def serialize : String =
89
+ s " endorse( ${expr.serialize}, ${expr.lbl.serialize} to ${lbl.serialize}) "
88
90
def mapExpr (f : Expression => Expression ): Expression = this .copy(expr = f(expr))
89
91
def mapLabel (f : Label => Label ): Expression = this .copy(lbl = f(lbl))
90
92
def mapType (f : Type => Type ): Expression = this
You can’t perform that action at this time.
0 commit comments