Package dtool.ast.references

Examples of dtool.ast.references.RefImportSelection


      || lookAhead() == DeeTokens.ASSIGN) {
      ProtoDefSymbol defId = parseDefId();
      consumeLookAhead(DeeTokens.ASSIGN);
      ParseHelper parse = new ParseHelper(defId.getStartPos());
     
      RefImportSelection refImportSelection = parseRefImportSelection();
      return parse.conclude(new ImportSelectiveAlias(defId, refImportSelection));
    } else {
      return parseRefImportSelection();
    }
  }
View Full Code Here


  }
 
  public RefImportSelection parseRefImportSelection() {
    BaseLexElement idToken = consumeExpectedContentToken(DeeTokens.IDENTIFIER);
    return conclude(idToken.getMissingError(),
      srEffective(idToken, new RefImportSelection(idTokenToString(idToken))));
  }
View Full Code Here

    if (targetModule == null)
      return;
     
    for(ASTNode impSelFrag: impSelective.impSelFrags) {
      if(impSelFrag instanceof RefImportSelection) {
        RefImportSelection refImportSelection = (RefImportSelection) impSelFrag;
        String name = refImportSelection.getDenulledIdentifier();
        // Do pre-emptive matching
        if(!search.matchesName(name)) {
          continue;
        }
        INamedElement namedElement = refImportSelection.findTargetDefElement(search.modResolver);
        if(namedElement != null) {
          search.addMatch(namedElement);
        }
      }
    }
View Full Code Here

TOP

Related Classes of dtool.ast.references.RefImportSelection

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.