OLD | NEW |
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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 void _verify(AstNode node) { | 475 void _verify(AstNode node) { |
476 LoggingTimer timer = logger.startTimer(); | 476 LoggingTimer timer = logger.startTimer(); |
477 try { | 477 try { |
478 RecordingErrorListener errorListener = new RecordingErrorListener(); | 478 RecordingErrorListener errorListener = new RecordingErrorListener(); |
479 ErrorReporter errorReporter = new ErrorReporter(errorListener, _source); | 479 ErrorReporter errorReporter = new ErrorReporter(errorListener, _source); |
480 ErrorVerifier errorVerifier = new ErrorVerifier( | 480 ErrorVerifier errorVerifier = new ErrorVerifier( |
481 errorReporter, | 481 errorReporter, |
482 _definingLibrary, | 482 _definingLibrary, |
483 _typeProvider, | 483 _typeProvider, |
484 new InheritanceManager(_definingLibrary), | 484 new InheritanceManager(_definingLibrary), |
485 _context.analysisOptions.enableSuperMixins, | 485 _context.analysisOptions.enableSuperMixins); |
486 _context.analysisOptions.enableAssertMessage); | |
487 if (_resolutionContext.enclosingClassDeclaration != null) { | 486 if (_resolutionContext.enclosingClassDeclaration != null) { |
488 errorVerifier.visitClassDeclarationIncrementally( | 487 errorVerifier.visitClassDeclarationIncrementally( |
489 _resolutionContext.enclosingClassDeclaration); | 488 _resolutionContext.enclosingClassDeclaration); |
490 } | 489 } |
491 node.accept(errorVerifier); | 490 node.accept(errorVerifier); |
492 _verifyErrors = errorListener.getErrorsForSource(_source); | 491 _verifyErrors = errorListener.getErrorsForSource(_source); |
493 } finally { | 492 } finally { |
494 timer.stop('verify'); | 493 timer.stop('verify'); |
495 } | 494 } |
496 } | 495 } |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 @override | 1309 @override |
1311 String toString() => name; | 1310 String toString() => name; |
1312 } | 1311 } |
1313 | 1312 |
1314 class _TokenPair { | 1313 class _TokenPair { |
1315 final _TokenDifferenceKind kind; | 1314 final _TokenDifferenceKind kind; |
1316 final Token oldToken; | 1315 final Token oldToken; |
1317 final Token newToken; | 1316 final Token newToken; |
1318 _TokenPair(this.kind, this.oldToken, this.newToken); | 1317 _TokenPair(this.kind, this.oldToken, this.newToken); |
1319 } | 1318 } |
OLD | NEW |