diff options
author | 2012-07-30 17:22:28 -0700 | |
---|---|---|
committer | 2012-07-30 17:22:28 -0700 | |
commit | c3f4fae804fe07942cc1f0e4fc6e40b2542de645 (patch) | |
tree | ec5ddee8d2d2fa8c520cfe8c7bef199e187d0100 /Source/Dafny/Dafny.atg | |
parent | e9534ceb03a09e5524709a6f9112d8c7fb1df711 (diff) |
Dafny: support opening modules into the local scope
Diffstat (limited to 'Source/Dafny/Dafny.atg')
-rw-r--r-- | Source/Dafny/Dafny.atg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/Dafny.atg b/Source/Dafny/Dafny.atg index 748b3090..ce0ccf16 100644 --- a/Source/Dafny/Dafny.atg +++ b/Source/Dafny/Dafny.atg @@ -203,11 +203,11 @@ SubModuleDecl<ModuleDefinition parent, bool isOverallModuleGhost, out ModuleDecl |
"import" ["opened" (.opened = true;.)]
( NoUSIdent<out id> ( "=" QualifiedName<out idPath> ";"
- (. submodule = new AliasModuleDecl(idPath, id, parent); .)
+ (. submodule = new AliasModuleDecl(idPath, id, parent, opened); .)
| ";"
- (. idPath = new List<IToken>(); idPath.Add(id); submodule = new AliasModuleDecl(idPath, id, parent); .)
+ (. idPath = new List<IToken>(); idPath.Add(id); submodule = new AliasModuleDecl(idPath, id, parent, opened); .)
| "as" QualifiedName<out idPath> ["default" QualifiedName<out idAssignment> ] ";"
- (.submodule = new AbstractModuleDecl(idPath, id, parent, idAssignment); .)
+ (.submodule = new AbstractModuleDecl(idPath, id, parent, idAssignment, opened); .)
)
)
)
|