Example usage for org.eclipse.jdt.internal.compiler.lookup Scope getBaseType

List of usage examples for org.eclipse.jdt.internal.compiler.lookup Scope getBaseType

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup Scope getBaseType.

Prototype

public static TypeBinding getBaseType(char[] name) 

Source Link

Usage

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++;
}