List of usage examples for org.eclipse.jdt.internal.compiler.lookup Scope getBaseType
public static TypeBinding getBaseType(char[] name)
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.BaseCallTrackingVariable.java
License:Open Source License
/** * Resolving a BaseCallTrackingVariable must happen after everything else of * the callin method has been resolved, because we need to know the number * of (real) allocated local variables.//from w ww. ja v a 2 s . c o m */ public void resolve(BlockScope scope) { // only need the binding, which is used as reference in FlowInfo methods. this.binding = new LocalVariableBinding(this.name, Scope.getBaseType("boolean".toCharArray()), // arbitrary.. //$NON-NLS-1$ ClassFileConstants.AccFinal, false); this.binding.setConstant(Constant.NotAConstant); // use a free slot without assigning it: this.binding.id = scope.outerMostMethodScope().analysisIndex++; }