public void mapAstDetails(CompilationUnit unit) { try { CompilationUnit = unit; AstDetails = new AstDetails(); var specials = Parser.Lexer.SpecialTracker.RetrieveSpecials(); specials.AddRange(ExtraSpecials); AstDetails.mapSpecials(specials); AstDetails.rewriteCode_CSharp(CompilationUnit, specials); AstDetails.rewriteCode_VBNet(CompilationUnit, specials); CompilationUnit.AcceptVisitor(AstDetails, null); } catch (Exception ex) { PublicDI.log.error("in mapAstDetails: {0}", ex.Message); } }
public static CSharp_FastCompiler astDetails(this CSharp_FastCompiler csharpCompiler, AstDetails value) { if (csharpCompiler.notNull()) csharpCompiler.CompilerArtifacts.AstDetails = value; return csharpCompiler; }
public void mapAstDetails(CompilationUnit unit) { try { CompilationUnit = unit; AstDetails = new AstDetails(); var specials = Parser.Lexer.SpecialTracker.RetrieveSpecials(); specials.AddRange(ExtraSpecials); AstDetails.mapSpecials(specials); AstDetails.rewriteCode_CSharp(CompilationUnit, specials); AstDetails.rewriteCode_VBNet(CompilationUnit, specials); CompilationUnit.AcceptVisitor(AstDetails, null); } catch(Exception ex) { PublicDI.log.error("in mapAstDetails: {0}", ex.Message); } }