internal override void Compile() { if (this.binaryCode == null) { JSParser parser = new JSParser(this.codeContext); if (base.ItemType == ((JSVsaItemType) 0x16)) { this.binaryCode = parser.ParseExpressionItem(); } else { this.binaryCode = parser.Parse(); } if (this.optimize && !parser.HasAborted) { this.binaryCode.ProcessAssemblyAttributeLists(); this.binaryCode.PartiallyEvaluate(); } if (base.engine.HasErrors && !base.engine.alwaysGenerateIL) { throw new EndOfFile(); } if (this.compileToIL) { this.compiledBlock = this.binaryCode.TranslateToILClass(base.engine.CompilerGlobals).CreateType(); } } }
internal override void Compile() { if (this.binaryCode == null) { JSParser parser = new JSParser(this.codeContext); if (base.ItemType == ((JSVsaItemType)0x16)) { this.binaryCode = parser.ParseExpressionItem(); } else { this.binaryCode = parser.Parse(); } if (this.optimize && !parser.HasAborted) { this.binaryCode.ProcessAssemblyAttributeLists(); this.binaryCode.PartiallyEvaluate(); } if (base.engine.HasErrors && !base.engine.alwaysGenerateIL) { throw new EndOfFile(); } if (this.compileToIL) { this.compiledBlock = this.binaryCode.TranslateToILClass(base.engine.CompilerGlobals).CreateType(); } } }