diff options
author | mikebarnett <unknown> | 2010-06-28 03:58:40 +0000 |
---|---|---|
committer | mikebarnett <unknown> | 2010-06-28 03:58:40 +0000 |
commit | cf3745b9c73052c2323ed93eb3d92b4e72b96e77 (patch) | |
tree | ccf8364dc2821eff04a1df8b8ddf4d841609ab9e /BCT/BytecodeTranslator/Program.cs | |
parent | 065957def8d08b4a08529e18c092ee7087895672 (diff) |
Simplified the translator by merging the ToplevelTraverser, ClassTraverser, and MethodTraverser into one traverser: MetadataTraverser. It will have to do a little more work to keep its state consistent (like saving any type-related state before traversing a nested type definition), but it seems worth it.
Diffstat (limited to 'BCT/BytecodeTranslator/Program.cs')
-rw-r--r-- | BCT/BytecodeTranslator/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Program.cs b/BCT/BytecodeTranslator/Program.cs index 452cc114..14cbfce7 100644 --- a/BCT/BytecodeTranslator/Program.cs +++ b/BCT/BytecodeTranslator/Program.cs @@ -62,7 +62,7 @@ namespace BytecodeTranslator { #region Pass 3: Translate the code model to BPL
//tmp_BPLGenerator translator = new tmp_BPLGenerator(host, acp);
var factory = new CLRSemantics();
- ToplevelTraverser translator = new ToplevelTraverser(factory, host.GetContractExtractor(module.ModuleIdentity));
+ MetadataTraverser translator = new MetadataTraverser(factory, host.GetContractExtractor(module.ModuleIdentity));
assembly = module as IAssembly;
if (assembly != null)
translator.Visit(assembly);
|