Package com.google.dart.engine.element

Examples of com.google.dart.engine.element.CompilationUnitElement


        cache.getOffset() + cache.getOldLength());

    // Update the resolution
    TypeProvider typeProvider = getTypeProvider();
    if (updatedUnit != null && typeProvider != null) {
      CompilationUnitElement element = updatedUnit.getElement();
      if (element != null) {
        LibraryElement library = element.getLibrary();
        if (library != null) {
          IncrementalResolver resolver = new IncrementalResolver(
              library,
              cache.getSource(),
              typeProvider,
View Full Code Here


    }
    LibraryElement libraryElement = unitElement.getLibrary();
    if (libraryElement == null) {
      return false;
    }
    CompilationUnitElement definingUnitElement = libraryElement.getDefiningCompilationUnit();
    if (definingUnitElement == null) {
      return false;
    }
    // prepare sources
    Source library = definingUnitElement.getSource();
    Source unit = unitElement.getSource();
    // special handling for the defining library unit
    if (unit.equals(library)) {
      // prepare new parts
      Set<Source> newParts = Sets.newHashSet();
View Full Code Here

  }

  @Override
  public Void visitHtmlUnit(HtmlUnit node) {
    htmlUnitElement = node.getElement();
    CompilationUnitElement dartUnitElement = htmlUnitElement.getAngularCompilationUnit();
    indexContributor.enterScope(dartUnitElement);
    return super.visitHtmlUnit(node);
  }
View Full Code Here

    String uri = getStringValue(node.getUri());
    if (uri != null) {
      Source partSource = enclosingUnit.getContext().getSourceFactory().resolveUri(
          enclosingUnit.getSource(),
          uri);
      CompilationUnitElement element = findPart(enclosingUnit.getLibrary().getParts(), partSource);
      processElement(element);
    }
    return super.visitPartDirective(node);
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.element.CompilationUnitElement

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.