Package org.eclipse.php.internal.core

Examples of org.eclipse.php.internal.core.PHPVersion


  /**
   * Factory methods for ASTParser
   */
  public static ASTParser newParser(ISourceModule sourceModule) {
    PHPVersion phpVersion = ProjectOptions.getPhpVersion(sourceModule
        .getScriptProject().getProject());

    return newParser(phpVersion, sourceModule);
  }
View Full Code Here


    fASTRoot = root;
    fProblems = getProblems(root);
    typeDeclarationName = null;
    isMethod = false;

    PHPVersion phpVersion = PHPVersion.PHP5_4;
    if (root.getSourceModule().getScriptProject() != null
        && root.getSourceModule().getScriptProject().getProject() != null) {
      phpVersion = ProjectOptions.getPhpVersion(root.getSourceModule()
          .getScriptProject().getProject());
    }

    if (node.getType() == ASTNode.IDENTIFIER) {
      Identifier identifier = (Identifier) node;

      classMemberName = identifier.getName();

      ASTNode parent = identifier.getParent();
      int type = parent.getType();
      isMethod = type == ASTNode.FUNCTION_DECLARATION
          || parent.getLocationInParent() == FunctionName.NAME_PROPERTY
          || parent.getLocationInParent() == FunctionInvocation.FUNCTION_PROPERTY
          || type == ASTNode.FULLY_QUALIFIED_TRAIT_METHOD_REFERENCE
          || type == ASTNode.TRAIT_ALIAS;

      dispatcherType = resolveDispatcherType(identifier);
      if (dispatcherType != null
          && phpVersion.isGreaterThan(PHPVersion.PHP5_3)) {
        String memberName = getRealName(identifier);
        // if (dispatcherType.isTrait()) {
        // traitList = new LinkedList<IType>();
        // traitList.add((IType) dispatcherType.getPHPElement());
        // } else {
View Full Code Here

        } catch (ModelException e) {
          PHPCorePlugin.log(e);
        }
      }

      PHPVersion phpVersion = arrayContext.getPhpVersion();
      reportVariables(reporter, arrayContext,
          PHPVariables.getVariables(phpVersion), prefix, true,
          extraObject);
    }
  }
View Full Code Here

    keywordsInitializer.initialize(keywordData);
    keywordsInitializer.initializeSpecific(keywordData);
  }

  public static PHPKeywords getInstance(IProject project) {
    PHPVersion version = ProjectOptions.getPhpVersion(project);
    synchronized (instances) {
      if (!instances.containsKey(version)) {
        PHPKeywords instance;
        if (PHPVersion.PHP4 == version) {
          instance = new PHPKeywords(new KeywordInitializerPHP_4());
View Full Code Here

   
    final IPath sourcePath = firstPage.getSourcePath();
    final IPath containerPath = firstPage.getContainerPath();
    final IPath consolePath = firstPage.getConsolePath();
    final String projectName = firstPage.getProjectName();
    final PHPVersion phpVersion = firstPage.getPHPVersion();
    final SymfonyVersion symfonyVersion = firstPage.getSymfonyVersion();
   
    IRunnableWithProgress op = new IRunnableWithProgress() {
      @Override
      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.PHPVersion

Copyright © 2018 www.massapicom. 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.