summaryrefslogtreecommitdiff
path: root/Source/Dafny/Rewriter.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-12-07 01:23:24 -0800
committerGravatar leino <unknown>2014-12-07 01:23:24 -0800
commitd0519ffb24c23198269a0bff1f8ed20e7c1b3f5a (patch)
tree9e41dee147e9713a08400a0811fb782f4bb0a304 /Source/Dafny/Rewriter.cs
parent3d8fd4cc56db82eb5c83f1e2061e88859f40778d (diff)
Finished up refactoring of the new name segment parsing, AST, and resolution.
Removed now defunct IdentifierSequence from the AST.
Diffstat (limited to 'Source/Dafny/Rewriter.cs')
-rw-r--r--Source/Dafny/Rewriter.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Dafny/Rewriter.cs b/Source/Dafny/Rewriter.cs
index 31ba1a3d..9356c6a6 100644
--- a/Source/Dafny/Rewriter.cs
+++ b/Source/Dafny/Rewriter.cs
@@ -518,10 +518,9 @@ namespace Microsoft.Dafny
// Build the implication connecting the function's requires to the connection with the revealed-body version
Func<Function, Expression> func_builder = func =>
- new IdentifierSequence(
- new List<Bpl.IToken>() { func.tok },
- func.tok,
- func.Formals.ConvertAll(x => (Expression)new IdentifierExpr(func.tok, x.Name)));
+ new ApplySuffix(func.tok,
+ new NameSegment(func.tok, func.Name, null),
+ func.Formals.ConvertAll(x => (Expression)new IdentifierExpr(func.tok, x.Name)));
var oldEqualsNew = new BinaryExpr(f.tok, BinaryExpr.Opcode.Eq, func_builder(f), func_builder(fWithBody));
var requiresImpliesOldEqualsNew = new BinaryExpr(f.tok, BinaryExpr.Opcode.Imp, reqExpr, oldEqualsNew);