Package com.google.dart.engine.internal.error

Examples of com.google.dart.engine.internal.error.ErrorReporter


  @Override
  protected void internalPerform() throws AnalysisException {
    TimeCounterHandle timeCounter = PerformanceStatistics.errors.start();
    try {
      RecordingErrorListener errorListener = new RecordingErrorListener();
      ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
      TypeProvider typeProvider = getContext().getTypeProvider();
      //
      // Validate the directives
      //
      validateDirectives(getContext(), source, unit, errorListener);
View Full Code Here


          } else {
            generateForCompilationUnit(compilationUnits[i], element.getSource());
          }
        }
      }
      ErrorReporter definingCompilationUnitErrorReporter = new ErrorReporter(
          errorListener,
          compilationUnits[0].getElement().getSource());
      importsVerifier.generateDuplicateImportHints(definingCompilationUnitErrorReporter);
      importsVerifier.generateUnusedImportHints(definingCompilationUnitErrorReporter);
    } finally {
View Full Code Here

      timeCounter.stop();
    }
  }

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

    unit.accept(importsVerifier);

    // dead code analysis
    unit.accept(new DeadCodeVerifier(errorReporter));
View Full Code Here

    //
    // Perform additional error checking.
    //
    TimeCounterHandle counterHandleErrors = PerformanceStatistics.errors.start();
    try {
      ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
      ErrorVerifier errorVerifier = new ErrorVerifier(
          errorReporter,
          libraryElement,
          typeProvider,
          inheritanceManager);
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.error.ErrorReporter

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.