summaryrefslogtreecommitdiff
path: root/Source/DafnyExtension/IdentifierTagger.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2014-02-04 13:50:35 -0800
committerGravatar Rustan Leino <unknown>2014-02-04 13:50:35 -0800
commit350943135ec691291f194964098ac663356eb21f (patch)
tree108f2fc26d11f4708983556fa57c12aab69f9486 /Source/DafnyExtension/IdentifierTagger.cs
parentcec5d3c3de15389f7dab83013a57c6a586fab4a4 (diff)
Mark auto-generated expressions (in "decreases" clauses) and don't use these when figuring out hover text.
Diffstat (limited to 'Source/DafnyExtension/IdentifierTagger.cs')
-rw-r--r--Source/DafnyExtension/IdentifierTagger.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/DafnyExtension/IdentifierTagger.cs b/Source/DafnyExtension/IdentifierTagger.cs
index d459d7eb..f2961d63 100644
--- a/Source/DafnyExtension/IdentifierTagger.cs
+++ b/Source/DafnyExtension/IdentifierTagger.cs
@@ -237,7 +237,10 @@ namespace DafnyLanguage
static void ExprRegions(Microsoft.Dafny.Expression expr, List<IdRegion> regions, ModuleDefinition module) {
Contract.Requires(expr != null);
Contract.Requires(regions != null);
- if (expr is IdentifierExpr) {
+ if (expr is AutoGeneratedExpression) {
+ // do nothing
+ return;
+ } else if (expr is IdentifierExpr) {
var e = (IdentifierExpr)expr;
IdRegion.Add(regions, e.tok, e.Var, false, module);
} else if (expr is FieldSelectExpr) {