Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 628053002: Create a NullErrorReporter to use when errors don't need to be recorded. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 10514 matching lines...) Expand 10 before | Expand all | Expand 10 after
10525 List<AnalysisError> get errors => _errors; 10525 List<AnalysisError> get errors => _errors;
10526 10526
10527 @override 10527 @override
10528 String get taskDescription => "generate errors and warnings for ${source.fullN ame}"; 10528 String get taskDescription => "generate errors and warnings for ${source.fullN ame}";
10529 10529
10530 @override 10530 @override
10531 void internalPerform() { 10531 void internalPerform() {
10532 TimeCounter_TimeCounterHandle timeCounter = PerformanceStatistics.errors.sta rt(); 10532 TimeCounter_TimeCounterHandle timeCounter = PerformanceStatistics.errors.sta rt();
10533 try { 10533 try {
10534 RecordingErrorListener errorListener = new RecordingErrorListener(); 10534 RecordingErrorListener errorListener = new RecordingErrorListener();
10535 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); 10535 ErrorReporter errorReporter = new ErrorReporterImpl(errorListener, source) ;
10536 TypeProvider typeProvider = context.typeProvider; 10536 TypeProvider typeProvider = context.typeProvider;
10537 // 10537 //
10538 // Validate the directives 10538 // Validate the directives
10539 // 10539 //
10540 validateDirectives(context, source, _unit, errorListener); 10540 validateDirectives(context, source, _unit, errorListener);
10541 // 10541 //
10542 // Use the ConstantVerifier to verify the use of constants. This needs to happen before using 10542 // Use the ConstantVerifier to verify the use of constants. This needs to happen before using
10543 // the ErrorVerifier because some error codes need the computed constant v alues. 10543 // the ErrorVerifier because some error codes need the computed constant v alues.
10544 // 10544 //
10545 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, li braryElement, typeProvider); 10545 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, li braryElement, typeProvider);
(...skipping 4032 matching lines...) Expand 10 before | Expand all | Expand 10 after
14578 // Resolve the rest of the structure 14578 // Resolve the rest of the structure
14579 // 14579 //
14580 InheritanceManager inheritanceManager = new InheritanceManager(_libraryEleme nt); 14580 InheritanceManager inheritanceManager = new InheritanceManager(_libraryEleme nt);
14581 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement, source, typeProvider, inheritanceManager, errorListener); 14581 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement, source, typeProvider, inheritanceManager, errorListener);
14582 unit.accept(resolverVisitor); 14582 unit.accept(resolverVisitor);
14583 // 14583 //
14584 // Perform additional error checking. 14584 // Perform additional error checking.
14585 // 14585 //
14586 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er rors.start(); 14586 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er rors.start();
14587 try { 14587 try {
14588 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); 14588 ErrorReporter errorReporter = new ErrorReporterImpl(errorListener, source) ;
14589 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle ment, typeProvider, inheritanceManager); 14589 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle ment, typeProvider, inheritanceManager);
14590 unit.accept(errorVerifier); 14590 unit.accept(errorVerifier);
14591 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _l ibraryElement, typeProvider); 14591 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _l ibraryElement, typeProvider);
14592 unit.accept(constantVerifier); 14592 unit.accept(constantVerifier);
14593 } finally { 14593 } finally {
14594 counterHandleErrors.stop(); 14594 counterHandleErrors.stop();
14595 } 14595 }
14596 // 14596 //
14597 // Capture the results. 14597 // Capture the results.
14598 // 14598 //
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
15640 _index++; 15640 _index++;
15641 if (_index >= _manager._workQueues[_queueIndex].length) { 15641 if (_index >= _manager._workQueues[_queueIndex].length) {
15642 _index = 0; 15642 _index = 0;
15643 _queueIndex++; 15643 _queueIndex++;
15644 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 15644 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
15645 _queueIndex++; 15645 _queueIndex++;
15646 } 15646 }
15647 } 15647 }
15648 } 15648 }
15649 } 15649 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698