Package com.google.dart.engine.internal.context

Examples of com.google.dart.engine.internal.context.ResolvableCompilationUnit


  }

  @Override
  protected void internalPerform() throws AnalysisException {
    TypeProvider typeProvider = ((InternalAnalysisContext) libraryElement.getContext()).getTypeProvider();
    ResolvableCompilationUnit resolvableUnit = getContext().computeResolvableCompilationUnit(source);
    modificationTime = resolvableUnit.getModificationTime();
    CompilationUnit unit = resolvableUnit.getCompilationUnit();
    if (unit == null) {
      throw new AnalysisException(
          "Internal error: computeResolvableCompilationUnit returned a value without a parsed Dart unit");
    }
    //
View Full Code Here


   * @param source the source representing the compilation unit whose AST is to be returned
   * @return the AST structure associated with the given source
   * @throws AnalysisException if an AST structure could not be created for the compilation unit
   */
  public CompilationUnit getAST(Source source) throws AnalysisException {
    ResolvableCompilationUnit holder = astMap.get(source);
    if (holder == null) {
      holder = analysisContext.computeResolvableCompilationUnit(source);
      astMap.put(source, holder);
    }
    return holder.getCompilationUnit();
  }
View Full Code Here

   *          returned
   * @return the modification time associated with the given source
   * @throws AnalysisException if an AST structure could not be created for the compilation unit
   */
  public long getModificationTime(Source source) throws AnalysisException {
    ResolvableCompilationUnit holder = astMap.get(source);
    if (holder == null) {
      holder = analysisContext.computeResolvableCompilationUnit(source);
      astMap.put(source, holder);
    }
    return holder.getModificationTime();
  }
View Full Code Here

   * @param modificationStamp the modification time of the source from which the compilation unit
   *          was created
   * @param unit the AST structure associated with the defining compilation unit for this library
   */
  public void setDefiningCompilationUnit(long modificationStamp, CompilationUnit unit) {
    astMap.put(librarySource, new ResolvableCompilationUnit(modificationStamp, unit));
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.context.ResolvableCompilationUnit

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.