Examples of PHPTypeInferencer


Examples of org.eclipse.php.internal.core.typeinference.PHPTypeInferencer

  private static final PHPTypeInferencer TYPE_INFERENCER = new PHPTypeInferencer();

  public static IType[] getTypes(ASTNode expression, ISourceModule sourceModule) {
    IContext context = ASTUtils.findContext(sourceModule, SourceParserUtil.getModuleDeclaration(sourceModule), expression.sourceStart());
    if (context != null) {
      IType[] types = getTypes(new PHPTypeInferencer().evaluateType(new ExpressionTypeGoal(context, expression)), context, expression.sourceStart());
      if (types != null) {
        return types;
      }
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.PHPTypeInferencer

  public TypeInferenceTestsWrapper() {
    super("");
  }

  public static void setUpSuite() throws Exception {
    typeInferenceEngine = new PHPTypeInferencer();
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.PHPTypeInferencer

    // configure nature
    IProjectDescription desc = project.getDescription();
    desc.setNatureIds(new String[] { PHPNature.ID });
    project.setDescription(desc, null);

    typeInferenceEngine = new PHPTypeInferencer();
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.PHPTypeInferencer

    } catch (Exception e) {
      Logger.logException(e);
    }

    if (visitor.getNode() != null) {
      PHPTypeInferencer typeInferencer = new PHPTypeInferencer();
      IEvaluatedType evaluatedType = typeInferencer
          .evaluateType(new ExpressionTypeGoal(visitor.getContext(),
              visitor.getNode()));
      modelElements = PHPTypeInferenceUtils.getModelElements(
          evaluatedType, (FileContext) visitor.getContext(), offset);
    }
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.