Examples of GlobalVariableReferencesGoal


Examples of org.eclipse.php.internal.core.typeinference.goals.GlobalVariableReferencesGoal

        }
        if (mergeWithGlobalScope
            || (decls.length == 0 && context.getClass() == FileContext.class)) {
          // collect all global variables, and merge results with
          // existing declarations
          subGoals.add(new GlobalVariableReferencesGoal(context,
              variableReference.getName()));
        }
        return subGoals.toArray(new IGoal[subGoals.size()]);
      }
    } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.goals.GlobalVariableReferencesGoal

  public GlobalVariableReferencesEvaluator(IGoal goal) {
    super(goal);
  }

  public IGoal[] init() {
    GlobalVariableReferencesGoal typedGoal = (GlobalVariableReferencesGoal) goal;

    IContext context = goal.getContext();
    ISourceModuleContext sourceModuleContext = null;
    IScriptProject scriptProject = null;
    if (context instanceof ISourceModuleContext) {
      sourceModuleContext = (ISourceModuleContext) context;
      scriptProject = sourceModuleContext.getSourceModule()
          .getScriptProject();
    }

    String variableName = typedGoal.getVariableName();

    boolean exploreOtherFiles = true;

    // Find all global variables from mixin
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.