Package com.google.dart.engine.utilities.general.TimeCounter

Examples of com.google.dart.engine.utilities.general.TimeCounter.TimeCounterHandle.stop()


          typeProvider,
          new InheritanceManager(libraryElement));
      unit.accept(errorVerifier);
      errors = errorListener.getErrorsForSource(source);
    } finally {
      timeCounter.stop();
    }
  }
}
View Full Code Here


      element.setTypes(holder.getTypes());
      element.setTopLevelVariables(holder.getTopLevelVariables());
      unit.setElement(element);
      return element;
    } finally {
      timeCounter.stop();
    }
  }
}
View Full Code Here

          errorListener,
          compilationUnits[0].getElement().getSource());
      importsVerifier.generateDuplicateImportHints(definingCompilationUnitErrorReporter);
      importsVerifier.generateUnusedImportHints(definingCompilationUnitErrorReporter);
    } finally {
      timeCounter.stop();
    }
  }

  private void generateForCompilationUnit(CompilationUnit unit, Source source) {
    ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
View Full Code Here

          errorReporter,
          libraryElement,
          typeProvider);
      unit.accept(constantVerifier);
    } finally {
      counterHandleErrors.stop();
    }
    //
    // Capture the results.
    //
    resolvedUnit = unit;
View Full Code Here

      lineInfo = new LineInfo(scanner.getLineStarts());
      errors = errorListener.getErrorsForSource(source);
    } catch (Exception exception) {
      throw new AnalysisException("Exception", exception);
    } finally {
      timeCounterScan.stop();
    }
  }
}
View Full Code Here

  public TimestampedData<CharSequence> getContents() throws Exception {
    TimeCounterHandle handle = PerformanceStatistics.io.start();
    try {
      return getContentsFromFile();
    } finally {
      reportIfSlowIO(handle.stop());
    }
  }

  @Override
  @DartOmit
View Full Code Here

  public void getContentsToReceiver(ContentReceiver receiver) throws Exception {
    TimeCounterHandle handle = PerformanceStatistics.io.start();
    try {
      getContentsFromFileToReceiver(receiver);
    } finally {
      reportIfSlowIO(handle.stop());
    }
  }

  @Override
  public String getEncoding() {
View Full Code Here

          }
        }
      }
      errors = errorListener.getErrorsForSource(source);
    } finally {
      timeCounterParse.stop();
    }
  }

  /**
   * Efficiently convert the given set of sources to an array.
View Full Code Here

          EnumMemberBuilder builder = new EnumMemberBuilder(typeProvider);
          library.getAST(source).accept(builder);
        }
      }
    } finally {
      timeCounter.stop();
    }
  }

  private HashMap<Source, ResolvableLibrary> buildLibraryMap() {
    HashMap<Source, ResolvableLibrary> libraryMap = new HashMap<Source, ResolvableLibrary>();
View Full Code Here

          TypeResolverVisitor visitor = new TypeResolverVisitor(library, source, typeProvider);
          ast.accept(visitor);
        }
      }
    } finally {
      timeCounter.stop();
    }
  }

  /**
   * Return an array containing the lexical identifiers associated with the nodes in the given list.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.