Package dtool.ast.definitions

Examples of dtool.ast.definitions.Module$DeclarationModule


 
  /* ------------------------------------------------------------ */
 
  public String getModuleFullyQualifiedName() {
    /* This must be overriden by synthetic defUnits */
    Module moduleNode = assertNotNull(getModuleNode());
    return moduleNode.getFullyQualifiedName();
  }
View Full Code Here


   
    SourceRange modRange = new SourceRange(0, getSourcePosition());
   
    if(md != null) {
      return result(false, conclude(modRange,
        new Module(md.getModuleSymbol(), md, members, compilationUnitPath)));
    } else {
      return result(false, conclude(modRange,
        Module.createModuleNoModuleDecl(defaultModuleName, members, compilationUnitPath, modRange)));
    }
  }
View Full Code Here

        return;

      IScopeNode outerScope = scope.getOuterLexicalScope();
      if(outerScope == null) {
        if(scope instanceof Module) {
          Module module = (Module) scope;
          findDefUnitInModuleDec(module, search);
          findDefUnitInObjectIntrinsic(search);
        }
        return;
      }
View Full Code Here

  }
 
  public static boolean privateNodeIsVisible(ASTNode node, Module searchOriginModule) {
    if(searchOriginModule == null)
      return false;
    Module nodeModule = node.getModuleNode();
    // only visible if in node in same module as search origin ref.
    return searchOriginModule.getFullyQualifiedName().equals(nodeModule.getFullyQualifiedName());
  }
View Full Code Here

  }
 
  /* ====================  ==================== */
 
  private static void findDefUnitInObjectIntrinsic(CommonDefUnitSearch search) {
    Module targetModule = search.resolveModule(EMPTY_PACKAGE, "object");
    if (targetModule != null) {
      findDefUnitInScope(targetModule, search);
    }
  }
View Full Code Here

 
  public static void findDefUnitInContentImport(ImportContent impContent, CommonDefUnitSearch search) {
    findDefUnitInStaticImport(impContent, search);
    //if(search.isScopeFinished()) return;
   
    Module targetModule = findImportTargetModule(search.modResolver, impContent);
    if(targetModule != null) {
      findDefUnitInScope(targetModule, search);
    }
  }
View Full Code Here

  }
 
  private static Module findImportTargetModule(IModuleResolver modResolver, IImportFragment impSelective) {
    String[] packages = impSelective.getModuleRef().packages.getInternalArray();
    String module = impSelective.getModuleRef().module;
    Module targetModule = findModuleUnchecked(modResolver, packages, module);
    return targetModule;
  }
View Full Code Here

  }
 
  public static void findDefUnitInSelectiveImport(
      ImportSelective impSelective, CommonDefUnitSearch search) {

    Module targetModule = findImportTargetModule(search.modResolver, impSelective);
    if (targetModule == null)
      return;
     
    for(ASTNode impSelFrag: impSelective.impSelFrags) {
      if(impSelFrag instanceof RefImportSelection) {
View Full Code Here

      DefinitionFunction defOpCallFunc = (DefinitionFunction) calleeElem;
      INamedElement calleeResult = defOpCallFunc.findReturnTypeTargetDefUnit(moduleResolver);
      return Collections.singleton(calleeResult);
    }
   
    Module moduleNode = null;
    if(calleeElem instanceof ASTNode) {
      ASTNode astNode = (ASTNode) calleeElem;
      moduleNode = astNode.getModuleNode();
    }
    if(moduleNode == null) {
View Full Code Here

    return getStartPos();
  }
 
  @Override
  public Collection<INamedElement> findRootDefUnits(IModuleResolver moduleResolver) {
    final Module module = NodeUtil.getParentModule(this);
    return Collections.<INamedElement>singletonList(module);
  }
View Full Code Here

TOP

Related Classes of dtool.ast.definitions.Module$DeclarationModule

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.