public GlslVisitor(BlockStatement block, CustomAttribute attr, DecompilerContext ctx) : this() { _attr = attr; var trans1 = new ReplaceMethodCallsWithOperators(ctx); var trans2 = new RenameLocals(); ((IAstTransform)trans1).Run(block); trans2.Run(block); Result = block.AcceptVisitor(this, 0).ToString(); Result += Environment.NewLine; }
public GlslVisitor(BlockStatement block, CustomAttribute attr, DecompilerContext ctx) : this() { _attr = attr; var trans1 = new ReplaceMethodCallsWithOperators(ctx); var trans2 = new RenameLocals(); ((IAstTransform)trans1).Run(block); trans2.Run(block); Result = block.AcceptVisitor(this, 0).ToString(); Result += Environment.NewLine; }