Package com.google.dart.engine.element

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


    return (ExportElement) super.getElement();
  }

  @Override
  public LibraryElement getUriElement() {
    ExportElement exportElement = getElement();
    if (exportElement != null) {
      return exportElement.getExportedLibrary();
    }
    return null;
  }
View Full Code Here


    return super.visitConstructorName(node);
  }

  @Override
  public Void visitExportDirective(ExportDirective node) {
    ExportElement element = node.getElement();
    if (element != null) {
      LibraryElement expLibrary = element.getExportedLibrary();
      recordLibraryReference(node, expLibrary);
    }
    return super.visitExportDirective(node);
  }
View Full Code Here

    return super.visitDoStatement(node);
  }

  @Override
  public Void visitExportDirective(ExportDirective node) {
    ExportElement exportElement = node.getElement();
    if (exportElement != null) {
      LibraryElement exportedLibrary = exportElement.getExportedLibrary();
      checkForAmbiguousExport(node, exportElement, exportedLibrary);
      checkForExportDuplicateLibraryName(node, exportElement, exportedLibrary);
      checkForExportInternalLibrary(node, exportElement);
    }
    return super.visitExportDirective(node);
View Full Code Here

  @Override
  public Void visitExportDirective(ExportDirective node) {
    String uri = getStringValue(node.getUri());
    if (uri != null) {
      LibraryElement library = enclosingUnit.getLibrary();
      ExportElement exportElement = findExport(
          library.getExports(),
          enclosingUnit.getContext().getSourceFactory().resolveUri(enclosingUnit.getSource(), uri));
      processElement(exportElement);
    }
    return super.visitExportDirective(node);
View Full Code Here

    return null;
  }

  @Override
  public Void visitExportDirective(ExportDirective node) {
    ExportElement exportElement = node.getElement();
    if (exportElement != null) {
      // The element is null when the URI is invalid
      // TODO(brianwilkerson) Figure out whether the element can ever be something other than an
      // ExportElement
      resolveCombinators(exportElement.getExportedLibrary(), node.getCombinators());
      setMetadata(exportElement, node);
    }
    return null;
  }
View Full Code Here

  @Override
  public Void visitExportDirective(ExportDirective node) {
    String uri = getStringValue(node.getUri());
    if (uri != null) {
      LibraryElement library = enclosingUnit.getLibrary();
      ExportElement exportElement = findExport(
          library.getExports(),
          enclosingUnit.getContext().getSourceFactory().resolveUri(enclosingUnit.getSource(), uri));
      node.setElement(exportElement);
    }
    return super.visitExportDirective(node);
View Full Code Here

TOP

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

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.