Browse Source

fix X64Converter converting the wrong conditional branch in preprocessor directives

newNRILSpyDebugger
Siegfried Pammer 13 years ago
parent
commit
2270217241
  1. 9
      src/AddIns/Analysis/Profiler/X64Converter/Program.cs

9
src/AddIns/Analysis/Profiler/X64Converter/Program.cs

@ -25,6 +25,9 @@ namespace X64Converter
foreach (string path in map) { foreach (string path in map) {
CSharpParser parser = new CSharpParser(); CSharpParser parser = new CSharpParser();
#if DEBUG
parser.CompilerSettings.ConditionalSymbols.Add("DEBUG");
#endif
string filePath = path + ".cs"; string filePath = path + ".cs";
if (File.Exists(filePath)) { if (File.Exists(filePath)) {
@ -67,6 +70,12 @@ namespace X64Converter
{ {
bool copyAllMembers; bool copyAllMembers;
public override object VisitNewLine(NewLineNode newLineNode)
{
newLineNode.Remove();
return base.VisitNewLine(newLineNode);
}
public override object VisitSimpleType(SimpleType simpleType) public override object VisitSimpleType(SimpleType simpleType)
{ {
simpleType.Identifier = simpleType.Identifier.Replace("32", "64"); simpleType.Identifier = simpleType.Identifier.Replace("32", "64");

Loading…
Cancel
Save