diff options
author | 2011-11-22 14:00:52 -0800 | |
---|---|---|
committer | 2011-11-22 14:00:52 -0800 | |
commit | 9be82a702255a26e458440e8fdee9be061c8e39e (patch) | |
tree | 0fb9a3f97bae4cbb471b09a22b1364211a925d0c /Source/Core/Absy.cs | |
parent | 32e1b319dbdabc20d88083a37b3f52ff574c0aa2 (diff) |
Boogie: don't resolve ignored types (that is, "extern" types that have been thrown out)
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r-- | Source/Core/Absy.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs index 32b27ae6..4ec6eef8 100644 --- a/Source/Core/Absy.cs +++ b/Source/Core/Absy.cs @@ -308,7 +308,7 @@ namespace Microsoft.Boogie { Contract.Requires(rc != null);
// first resolve type constructors
foreach (Declaration d in TopLevelDeclarations) {
- if (d is TypeCtorDecl)
+ if (d is TypeCtorDecl && !QKeyValue.FindBoolAttribute(d.Attributes, "ignore"))
d.Resolve(rc);
}
@@ -316,7 +316,7 @@ namespace Microsoft.Boogie { List<TypeSynonymDecl/*!*/>/*!*/ synonymDecls = new List<TypeSynonymDecl/*!*/>();
foreach (Declaration d in TopLevelDeclarations) {
Contract.Assert(d != null);
- if (d is TypeSynonymDecl)
+ if (d is TypeSynonymDecl && !QKeyValue.FindBoolAttribute(d.Attributes, "ignore"))
synonymDecls.Add((TypeSynonymDecl)d);
}
|