diff options
author | leino <unknown> | 2015-04-07 18:20:21 -0700 |
---|---|---|
committer | leino <unknown> | 2015-04-07 18:20:21 -0700 |
commit | 196888695fd805997b02c367d90ac3fbfef32370 (patch) | |
tree | 13ef4843bafa3785c66e34ee952ee2b2f7ef915e /Source/Dafny/DafnyAst.cs | |
parent | 985579d14df105de939807d1d344fc75ff49563d (diff) |
Revised look-up and compilation of inherited trait members (static functions/methods don't work yet)
Diffstat (limited to 'Source/Dafny/DafnyAst.cs')
-rw-r--r-- | Source/Dafny/DafnyAst.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs index 02d729b4..dadfeb15 100644 --- a/Source/Dafny/DafnyAst.cs +++ b/Source/Dafny/DafnyAst.cs @@ -1872,6 +1872,7 @@ namespace Microsoft.Dafny { public class ClassDecl : TopLevelDecl {
public override string WhatKind { get { return "class"; } }
public readonly List<MemberDecl> Members;
+ public readonly List<MemberDecl> InheritedMembers = new List<MemberDecl>(); // these are non-ghost instance fields and instance members defined with bodies in traits (this list is used by the compiler)
public readonly List<Type> TraitsTyp; // these are the types that are parsed after the keyword 'extends'
public readonly List<TraitDecl> TraitsObj = new List<TraitDecl>(); // populated during resolution
public bool HasConstructor; // filled in (early) during resolution; true iff there exists a member that is a Constructor
@@ -2288,7 +2289,6 @@ namespace Microsoft.Dafny { public readonly bool IsGhost;
public TopLevelDecl EnclosingClass; // filled in during resolution
public MemberDecl RefinementBase; // filled in during the pre-resolution refinement transformation; null if the member is new here
- public bool Inherited;
public MemberDecl(IToken tok, string name, bool hasStaticKeyword, bool isGhost, Attributes attributes)
: base(tok, name, attributes) {
Contract.Requires(tok != null);
|