Examples of skipLast()


Examples of org.eclipse.xtext.naming.QualifiedName.skipLast()

    QualifiedName fqn = converter.toQualifiedName(name);
    // make last segments initial char lower case (for references to the type itself - eg. 'File' instead of
    // 'file'.
    if(fqn.getSegmentCount() == 0)
      return new SearchResult(); // can happen while editing
    fqn = fqn.skipLast(1).append(toInitialLowerCase(fqn.getLastSegment()));
    return findExternal(scopeDetermeningResource, fqn, importedNames, Match.EQUALS, CLASS_AND_TYPE);
  }

  private SearchResult findInherited(EObject scopeDetermeningObject, QualifiedName fqn,
      PPImportedNamesAdapter importedNames, List<QualifiedName> stack, SearchStrategy matchingStrategy,
View Full Code Here

Examples of org.eclipse.xtext.naming.QualifiedName.skipLast()

                  ? 1
                  : 0), issueString.length(), nameInScopeString));
        }
        // String scopeType = "current";

        for(QualifiedName qn = nameOfScope.skipLast(1); qn.getSegmentCount() > 0; qn = qn.skipLast(1)) {
          QualifiedName nameInScope = qn.append(issueString);
          String nameInScopeString = converter.toString(nameInScope);
          // TODO: Only propose if this name exists
          // configure for lookup of things
          if(ppFinder.findVariables(varExpr, nameInScopeString, null).getAdjusted().size() > 0)
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.