summaryrefslogtreecommitdiff
path: root/Source/Dafny/Printer.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-01-02 22:05:10 -0800
committerGravatar leino <unknown>2015-01-02 22:05:10 -0800
commitbcb2910254f5e108e65f8f6ff5ab4efe03728f6c (patch)
tree9a127103f5c1f86f44cdd12dd89b8c6e07abcb94 /Source/Dafny/Printer.cs
parent1ad3e91e2b2945572603b8ca5bf063195e72b55f (diff)
Fixed resolution of method calls with explicit type parameters.
Finished refactoring of the recent name segments changes.
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r--Source/Dafny/Printer.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs
index 9a27c080..794dfe05 100644
--- a/Source/Dafny/Printer.cs
+++ b/Source/Dafny/Printer.cs
@@ -786,25 +786,6 @@ namespace Microsoft.Dafny {
PrintRhs(s.Rhs);
wr.Write(";");
- } else if (stmt is CallStmt) {
- CallStmt s = (CallStmt)stmt;
- if (s.Lhs.Count != 0) {
- string sep = "";
- foreach (IdentifierExpr v in s.Lhs) {
- wr.Write(sep);
- PrintExpression(v, true);
- sep = ", ";
- }
- wr.Write(" := ");
- }
- if (!(s.Receiver is ImplicitThisExpr)) {
- PrintExpr(s.Receiver, 0x70, false, false, true, -1);
- wr.Write(".");
- }
- wr.Write("{0}", s.MethodName);
- PrintActualArguments(s.Args, s.MethodName);
- wr.Write(";");
-
} else if (stmt is BlockStmt) {
wr.WriteLine("{");
int ind = indent + IndentAmount;
@@ -1145,14 +1126,6 @@ namespace Microsoft.Dafny {
PrintExpressionList(t.Arguments, false);
wr.Write(")");
}
- } else if (rhs is CallRhs) {
- var r = (CallRhs)rhs;
- if (!(r.Receiver is ImplicitThisExpr)) {
- PrintExpr(r.Receiver, 0x70, false, false, true, -1);
- wr.Write(".");
- }
- wr.Write("{0}", r.MethodName);
- PrintActualArguments(r.Args, r.MethodName);
} else {
Contract.Assert(false); throw new cce.UnreachableException(); // unexpected RHS
}