diff options
author | qunyanm <unknown> | 2016-01-29 13:01:02 -0800 |
---|---|---|
committer | qunyanm <unknown> | 2016-01-29 13:01:02 -0800 |
commit | e4da5fcd52bbdd0b8345056a3475333d6e27e65f (patch) | |
tree | 243761b75f83fa1d74bce22a91e2d2a2316e1cf2 /Source/Dafny/Cloner.cs | |
parent | 7fb4b7f9ad53ad793eb7a66cf5ca89499d275121 (diff) |
Implement module export so we can export a subset of items defined in the
module.
Diffstat (limited to 'Source/Dafny/Cloner.cs')
-rw-r--r-- | Source/Dafny/Cloner.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Dafny/Cloner.cs b/Source/Dafny/Cloner.cs index 6b3b0caa..8971d2c1 100644 --- a/Source/Dafny/Cloner.cs +++ b/Source/Dafny/Cloner.cs @@ -126,6 +126,11 @@ namespace Microsoft.Dafny abs.Signature = a.Signature;
abs.OriginalSignature = a.OriginalSignature;
return abs;
+ } else if (d is ModuleExportDecl) {
+ var a = (ModuleExportDecl)d;
+ var export = new ModuleExportDecl(a.tok, m, a.IsDefault, a.Exports, a.Extends);
+ export.Signature = a.Signature;
+ return export;
} else {
Contract.Assert(false); // unexpected declaration
return null; // to please compiler
|