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

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

Issue 2239613002: Issue 27053. Record errors in InferStaticVariableTypeTask and include them into unit errors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
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 library analyzer.src.generated.incremental_resolver; 5 library analyzer.src.generated.incremental_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 } 378 }
379 } 379 }
380 380
381 void _shiftEntryErrors() { 381 void _shiftEntryErrors() {
382 _shiftErrors_NEW(HINTS); 382 _shiftErrors_NEW(HINTS);
383 _shiftErrors_NEW(LINTS); 383 _shiftErrors_NEW(LINTS);
384 _shiftErrors_NEW(LIBRARY_UNIT_ERRORS); 384 _shiftErrors_NEW(LIBRARY_UNIT_ERRORS);
385 _shiftErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS); 385 _shiftErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS);
386 _shiftErrors_NEW(RESOLVE_TYPE_BOUNDS_ERRORS); 386 _shiftErrors_NEW(RESOLVE_TYPE_BOUNDS_ERRORS);
387 _shiftErrors_NEW(RESOLVE_UNIT_ERRORS); 387 _shiftErrors_NEW(RESOLVE_UNIT_ERRORS);
388 _shiftErrors_NEW(STATIC_VARIABLE_RESOLUTION_ERRORS_IN_UNIT);
388 _shiftErrors_NEW(STRONG_MODE_ERRORS); 389 _shiftErrors_NEW(STRONG_MODE_ERRORS);
389 _shiftErrors_NEW(VARIABLE_REFERENCE_ERRORS); 390 _shiftErrors_NEW(VARIABLE_REFERENCE_ERRORS);
390 _shiftErrors_NEW(VERIFY_ERRORS); 391 _shiftErrors_NEW(VERIFY_ERRORS);
391 } 392 }
392 393
393 void _shiftErrors(List<AnalysisError> errors) { 394 void _shiftErrors(List<AnalysisError> errors) {
394 for (AnalysisError error in errors) { 395 for (AnalysisError error in errors) {
395 if (_alreadyShiftedErrors.add(error)) { 396 if (_alreadyShiftedErrors.add(error)) {
396 int errorOffset = error.offset; 397 int errorOffset = error.offset;
397 if (errorOffset > _updateOffset) { 398 if (errorOffset > _updateOffset) {
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 @override 1320 @override
1320 String toString() => name; 1321 String toString() => name;
1321 } 1322 }
1322 1323
1323 class _TokenPair { 1324 class _TokenPair {
1324 final _TokenDifferenceKind kind; 1325 final _TokenDifferenceKind kind;
1325 final Token oldToken; 1326 final Token oldToken;
1326 final Token newToken; 1327 final Token newToken;
1327 _TokenPair(this.kind, this.oldToken, this.newToken); 1328 _TokenPair(this.kind, this.oldToken, this.newToken);
1328 } 1329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698