summaryrefslogtreecommitdiff
path: root/Source/Dafny/DafnyAst.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-08-10 18:06:04 -0700
committerGravatar leino <unknown>2015-08-10 18:06:04 -0700
commit2a921fb2a765d91bba47901144845b0102edbcbb (patch)
tree9077a569c7332a623dce21af589b177676191429 /Source/Dafny/DafnyAst.cs
parentc978cd18f8dfba5bfac92af792041c5b4756de5a (diff)
Added routine OneAttributeToString to pretty printer
Diffstat (limited to 'Source/Dafny/DafnyAst.cs')
-rw-r--r--Source/Dafny/DafnyAst.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs
index 8d68e3e2..f66f40a1 100644
--- a/Source/Dafny/DafnyAst.cs
+++ b/Source/Dafny/DafnyAst.cs
@@ -5761,6 +5761,16 @@ namespace Microsoft.Dafny {
Contract.Requires(name != null);
Name = name;
}
+ /// <summary>
+ /// Constructs a resolved IdentifierExpr.
+ /// </summary>
+ public IdentifierExpr(IVariable v)
+ : base(v.Tok) {
+ Contract.Requires(v != null);
+ Name = v.Name;
+ Var = v;
+ Type = v.Type;
+ }
}
/// <summary>