diff options
author | leino <unknown> | 2014-12-07 01:23:24 -0800 |
---|---|---|
committer | leino <unknown> | 2014-12-07 01:23:24 -0800 |
commit | d0519ffb24c23198269a0bff1f8ed20e7c1b3f5a (patch) | |
tree | 9e41dee147e9713a08400a0811fb782f4bb0a304 /Source/Dafny/Rewriter.cs | |
parent | 3d8fd4cc56db82eb5c83f1e2061e88859f40778d (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.cs | 7 |
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);
|