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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 2557513008: Enable messages in asserts by default (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analyzer.src.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 6214 matching lines...) Expand 10 before | Expand all | Expand 10 after
6225 errorReporter, libraryElement, typeProvider, context.declaredVariables); 6225 errorReporter, libraryElement, typeProvider, context.declaredVariables);
6226 unit.accept(constantVerifier); 6226 unit.accept(constantVerifier);
6227 // 6227 //
6228 // Use the ErrorVerifier to compute errors. 6228 // Use the ErrorVerifier to compute errors.
6229 // 6229 //
6230 ErrorVerifier errorVerifier = new ErrorVerifier( 6230 ErrorVerifier errorVerifier = new ErrorVerifier(
6231 errorReporter, 6231 errorReporter,
6232 libraryElement, 6232 libraryElement,
6233 typeProvider, 6233 typeProvider,
6234 new InheritanceManager(libraryElement), 6234 new InheritanceManager(libraryElement),
6235 context.analysisOptions.enableSuperMixins, 6235 context.analysisOptions.enableSuperMixins);
6236 context.analysisOptions.enableAssertMessage);
6237 unit.accept(errorVerifier); 6236 unit.accept(errorVerifier);
6238 // 6237 //
6239 // Convert the pending errors into actual errors. 6238 // Convert the pending errors into actual errors.
6240 // 6239 //
6241 for (PendingError pendingError in pendingErrors) { 6240 for (PendingError pendingError in pendingErrors) {
6242 errorListener.onError(pendingError.toAnalysisError()); 6241 errorListener.onError(pendingError.toAnalysisError());
6243 } 6242 }
6244 // 6243 //
6245 // Record outputs. 6244 // Record outputs.
6246 // 6245 //
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
6488 6487
6489 @override 6488 @override
6490 bool moveNext() { 6489 bool moveNext() {
6491 if (_newSources.isEmpty) { 6490 if (_newSources.isEmpty) {
6492 return false; 6491 return false;
6493 } 6492 }
6494 currentTarget = _newSources.removeLast(); 6493 currentTarget = _newSources.removeLast();
6495 return true; 6494 return true;
6496 } 6495 }
6497 } 6496 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698