summaryrefslogtreecommitdiff
path: root/Source/Dafny/DafnyAst.cs
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-20 14:08:47 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-20 14:08:47 -0700
commit91654565e2a5a6f36c582fe0c5d0b7eaf57caa09 (patch)
treea77c23aa92955d3eed2430561a4a59e887f967f0 /Source/Dafny/DafnyAst.cs
parent82cd6194369a376e51a6b525e577f7cc8852ebef (diff)
Add calc's attributes to its SubExpressions.
Diffstat (limited to 'Source/Dafny/DafnyAst.cs')
-rw-r--r--Source/Dafny/DafnyAst.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs
index 21f5fadd..8d68e3e2 100644
--- a/Source/Dafny/DafnyAst.cs
+++ b/Source/Dafny/DafnyAst.cs
@@ -4807,6 +4807,8 @@ namespace Microsoft.Dafny {
{
get {
foreach (var e in base.SubExpressions) { yield return e; }
+ foreach (var e in Attributes.SubExpressions(Attributes)) { yield return e; }
+
foreach (var l in Lines) {
yield return l;
}