public void generateCode() { if ((this.bits & ASTNode.HasBeenGenerated) != 0) return; this.bits |= ASTNode.HasBeenGenerated; if (this.ignoreFurtherInvestigation) { return; } try { // create the result for a compiled type LookupEnvironment env = this.scope.environment(); ClassFile classFile = env.classFilePool.acquireForModule(this.binding, env.globalOptions); classFile.initializeForModule(this.binding); // finalize the compiled type result classFile.addModuleAttributes(this.binding, this.annotations, this.scope.referenceCompilationUnit()); this.scope.referenceCompilationUnit().compilationResult.record( this.binding.moduleName, classFile); } catch (AbortType e) { if (this.binding == null) return; } }
public void generateCode() { if ((this.bits & ASTNode.HasBeenGenerated) != 0) return; this.bits |= ASTNode.HasBeenGenerated; if (this.ignoreFurtherInvestigation) { return; } try { // create the result for a compiled type LookupEnvironment env = this.scope.environment(); ClassFile classFile = env.classFilePool.acquireForModule(this.binding, env.globalOptions); classFile.initializeForModule(this.binding); // finalize the compiled type result classFile.addModuleAttributes(this.binding, this.annotations, this.scope.referenceCompilationUnit()); this.scope.referenceCompilationUnit().compilationResult.record( this.binding.moduleName, classFile); } catch (AbortType e) { if (this.binding == null) return; } }