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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 701583003: Workaround for ConstantVisitor dependency issues. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index f661da9291891238cdada63b4b9b14f26b7306ec..9164e8e4d687749f76993607f53098ca552ba913 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -8812,8 +8812,12 @@ class GenerateDartErrorsTask extends AnalysisTask {
// Use the ConstantVerifier to verify the use of constants. This needs to happen before using
// the ErrorVerifier because some error codes need the computed constant values.
//
- ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, libraryElement, typeProvider);
- _unit.accept(constantVerifier);
+ // TODO(paulberry): as a temporary workaround for issue 21572,
+ // ConstantVerifier is being run right after ConstantValueComputer, so we
+ // don't need to run it here. Once issue 21572 is fixed, re-enable the
+ // call to ConstantVerifier.
+ // ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, libraryElement, typeProvider);
+ // _unit.accept(constantVerifier);
//
// Use the ErrorVerifier to compute the rest of the errors.
//
@@ -12632,8 +12636,12 @@ class ResolveDartUnitTask extends AnalysisTask {
ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryElement, typeProvider, inheritanceManager);
unit.accept(errorVerifier);
- ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _libraryElement, typeProvider);
- unit.accept(constantVerifier);
+ // TODO(paulberry): as a temporary workaround for issue 21572,
+ // ConstantVerifier is being run right after ConstantValueComputer, so we
+ // don't need to run it here. Once issue 21572 is fixed, re-enable the
+ // call to ConstantVerifier.
+ // ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _libraryElement, typeProvider);
+ // unit.accept(constantVerifier);
} finally {
counterHandleErrors.stop();
}
« no previous file with comments | « pkg/analysis_server/test/services/refactoring/extract_local_test.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698