diff options
author | Rustan Leino <unknown> | 2015-06-02 13:15:01 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2015-06-02 13:15:01 -0700 |
commit | 0e63640cbdb2ba154ef1427782ba147717bee3cf (patch) | |
tree | 7aa6f1c20840cc68036877155a56e22514bf78c8 /Source/DafnyExtension | |
parent | 7be9e523b10042c01e5c05ad7ff1cf2ac113e287 (diff) |
Added {:auto_generated} trigger, which indicates that a declaration was not explicitly mentioned in the input. This lets the Dafny IDE know not to add hovertext for these declarations.
Diffstat (limited to 'Source/DafnyExtension')
-rw-r--r-- | Source/DafnyExtension/IdentifierTagger.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/DafnyExtension/IdentifierTagger.cs b/Source/DafnyExtension/IdentifierTagger.cs index 3bb8f01c..086ac8e4 100644 --- a/Source/DafnyExtension/IdentifierTagger.cs +++ b/Source/DafnyExtension/IdentifierTagger.cs @@ -179,7 +179,9 @@ namespace DafnyLanguage } else if (d is ClassDecl) {
var cl = (ClassDecl)d;
foreach (var member in cl.Members) {
- if (member is Function) {
+ if (Attributes.Contains(member.Attributes, "auto_generated")) {
+ // do nothing
+ } else if (member is Function) {
var f = (Function)member;
foreach (var p in f.Formals) {
IdRegion.Add(newRegions, p.tok, p, true, module);
|