diff options
author | 2011-01-21 19:00:11 +0000 | |
---|---|---|
committer | 2011-01-21 19:00:11 +0000 | |
commit | 9baf6ef4653655e9893e29c0ebf4fedcbed7666a (patch) | |
tree | 6dc314df8103b47b5453e7338f4c676647b0247e /BCT/BytecodeTranslator/ExpressionTraverser.cs | |
parent | 94af5d3681e1cd1af9b648ecd8e55074958415f3 (diff) |
Added a better options parsing by using functionality from MemberHelper.
Added a new heap representation, TwoDBoxHeap.
Made method names unique (previously, overloads all shared the same procedure name). As part of that, no longer require method references to be resolved in order to generate a name.
Added a regression test for TwoDBoxHeap.
Added tests for method overloads for unique name generation.
Diffstat (limited to 'BCT/BytecodeTranslator/ExpressionTraverser.cs')
-rw-r--r-- | BCT/BytecodeTranslator/ExpressionTraverser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BCT/BytecodeTranslator/ExpressionTraverser.cs b/BCT/BytecodeTranslator/ExpressionTraverser.cs index 150518b0..dd6cbb66 100644 --- a/BCT/BytecodeTranslator/ExpressionTraverser.cs +++ b/BCT/BytecodeTranslator/ExpressionTraverser.cs @@ -462,7 +462,7 @@ namespace BytecodeTranslator outvars.Add(new Bpl.IdentifierExpr(cloc, v));
TranslatedExpressions.Push(new Bpl.IdentifierExpr(cloc, v));
}
- string methodname = TranslationHelper.CreateUniqueMethodName(resolvedMethod);
+ string methodname = TranslationHelper.CreateUniqueMethodName(methodCall.MethodToCall);
Bpl.QKeyValue attrib = null;
@@ -626,7 +626,7 @@ namespace BytecodeTranslator }
Bpl.IdentifierExprSeq outvars = new Bpl.IdentifierExprSeq();
- string methodname = TranslationHelper.CreateUniqueMethodName(ctor.ResolvedMethod);
+ string methodname = TranslationHelper.CreateUniqueMethodName(ctor);
this.StmtTraverser.StmtBuilder.Add(new Bpl.CallCmd(cloc, methodname, inexpr, outvars));
|