diff options
author | leino <unknown> | 2015-08-11 23:08:17 -0700 |
---|---|---|
committer | leino <unknown> | 2015-08-11 23:08:17 -0700 |
commit | 41d16e5a28b4eab7fb56f04c76759f8e24678b74 (patch) | |
tree | 265f2e16d890f531430e77db49dbc4f0f8165366 /Source/Dafny/Rewriter.cs | |
parent | 4325b50ed7732bdd2b7b7455bd290f385d0f5383 (diff) |
Bug fixes and improvements in pretty printing
Diffstat (limited to 'Source/Dafny/Rewriter.cs')
-rw-r--r-- | Source/Dafny/Rewriter.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Dafny/Rewriter.cs b/Source/Dafny/Rewriter.cs index 7ab7dd36..4ac709f6 100644 --- a/Source/Dafny/Rewriter.cs +++ b/Source/Dafny/Rewriter.cs @@ -839,7 +839,7 @@ namespace Microsoft.Dafny }
if (!tip.Equals("")) {
- resolver.ReportAdditionalInformation(f.tok, tip, f.tok.val.Length);
+ resolver.ReportAdditionalInformation(f.tok, tip);
if (DafnyOptions.O.AutoReqPrintFile != null) {
using (System.IO.TextWriter writer = new System.IO.StreamWriter(DafnyOptions.O.AutoReqPrintFile, true)) {
writer.WriteLine(f.Name);
@@ -866,7 +866,7 @@ namespace Microsoft.Dafny }
if (!tip.Equals("")) {
- resolver.ReportAdditionalInformation(method.tok, tip, method.tok.val.Length);
+ resolver.ReportAdditionalInformation(method.tok, tip);
if (DafnyOptions.O.AutoReqPrintFile != null) {
using (System.IO.TextWriter writer = new System.IO.StreamWriter(DafnyOptions.O.AutoReqPrintFile, true)) {
writer.WriteLine(method.Name);
@@ -1061,7 +1061,7 @@ namespace Microsoft.Dafny Expression allReqsSatisfied = andify(e.Term.tok, auto_reqs);
Expression allReqsSatisfiedAndTerm = Expression.CreateAnd(allReqsSatisfied, e.Term);
e.UpdateTerm(allReqsSatisfiedAndTerm);
- resolver.ReportAdditionalInformation(e.tok, "autoreq added (" + Printer.ExtendedExprToString(allReqsSatisfied) + ") &&", e.tok.val.Length);
+ resolver.ReportAdditionalInformation(e.tok, "autoreq added (" + Printer.ExtendedExprToString(allReqsSatisfied) + ") &&");
}
} else if (expr is SetComprehension) {
var e = (SetComprehension)expr;
@@ -1410,7 +1410,7 @@ namespace Microsoft.Dafny attributes = new Attributes("_induction", inductionVariables, attributes);
// And since we're inferring something, let's also report that in a hover text.
var s = Printer.OneAttributeToString(attributes, "induction");
- Resolver.ReportAdditionalInformation(tok, s, s.Length);
+ Resolver.ReportAdditionalInformation(tok, s);
}
}
class Induction_Visitor : BottomUpVisitor
|