diff options
author | leino <unknown> | 2015-03-07 17:03:35 -0800 |
---|---|---|
committer | leino <unknown> | 2015-03-07 17:03:35 -0800 |
commit | 1157b689cbc7c65cde1f20192e8b3b49046d6fc4 (patch) | |
tree | 86c8df3819110e095b045d242f3ee013a1bfe066 /Source/Dafny/Printer.cs | |
parent | 13b3fc763b1d5ab070eb4583bbca342ec0582ac4 (diff) |
Added 'protected' keyword (syntax)
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r-- | Source/Dafny/Printer.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index 5ae5643b..b8c99b00 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -474,6 +474,7 @@ namespace Microsoft.Dafny { var isPredicate = f is Predicate || f is PrefixPredicate;
Indent(indent);
string k = isPredicate ? "predicate" : f is CoPredicate ? "copredicate" : "function";
+ if (f.IsProtected) { k = "protected " + k; }
if (f.HasStaticKeyword) { k = "static " + k; }
if (!f.IsGhost) { k += " method"; }
PrintClassMethodHelper(k, f.Attributes, f.Name, f.TypeArgs);
|