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 engine.incremental_resolver; | 5 library engine.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/src/context/cache.dart' | 10 import 'package:analyzer/src/context/cache.dart' |
11 show CacheEntry, TargetedResult; | 11 show CacheEntry, TargetedResult; |
12 import 'package:analyzer/src/generated/constant.dart'; | 12 import 'package:analyzer/src/generated/constant.dart'; |
13 import 'package:analyzer/src/task/dart.dart' | 13 import 'package:analyzer/src/task/dart.dart' |
14 show | 14 show |
15 HINTS, | 15 HINTS, |
16 PARSE_ERRORS, | 16 PARSE_ERRORS, |
17 RESOLVE_REFERENCES_ERRORS, | 17 RESOLVE_REFERENCES_ERRORS, |
18 RESOLVE_TYPE_NAMES_ERRORS, | 18 RESOLVE_TYPE_NAMES_ERRORS, |
19 SCAN_ERRORS, | 19 SCAN_ERRORS, |
20 USED_IMPORTED_ELEMENTS, | 20 USED_IMPORTED_ELEMENTS, |
21 USED_LOCAL_ELEMENTS, | 21 USED_LOCAL_ELEMENTS, |
22 VARIABLE_REFERENCE_ERRORS, | 22 VARIABLE_REFERENCE_ERRORS, |
23 VERIFY_ERRORS; | 23 VERIFY_ERRORS; |
24 import 'package:analyzer/task/dart.dart' | 24 import 'package:analyzer/task/dart.dart' |
25 show DART_ERRORS, LibrarySpecificUnit, PARSED_UNIT, TOKEN_STREAM; | 25 show DART_ERRORS, LibrarySpecificUnit, PARSED_UNIT, TOKEN_STREAM; |
26 import 'package:analyzer/task/general.dart' show CONTENT, LINE_INFO; | 26 import 'package:analyzer/task/general.dart' show CONTENT, LINE_INFO; |
27 import 'package:analyzer/task/model.dart' show ResultDescriptor; | 27 import 'package:analyzer/task/model.dart' show ResultDescriptor, TargetedResult; |
28 | 28 |
29 import 'ast.dart'; | 29 import 'ast.dart'; |
30 import 'element.dart'; | 30 import 'element.dart'; |
31 import 'engine.dart'; | 31 import 'engine.dart'; |
32 import 'error.dart'; | 32 import 'error.dart'; |
33 import 'error_verifier.dart'; | 33 import 'error_verifier.dart'; |
34 import 'incremental_logger.dart' show logger, LoggingTimer; | 34 import 'incremental_logger.dart' show logger, LoggingTimer; |
35 import 'java_engine.dart'; | 35 import 'java_engine.dart'; |
36 import 'parser.dart'; | 36 import 'parser.dart'; |
37 import 'resolver.dart'; | 37 import 'resolver.dart'; |
(...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 @override | 2015 @override |
2016 String toString() => name; | 2016 String toString() => name; |
2017 } | 2017 } |
2018 | 2018 |
2019 class _TokenPair { | 2019 class _TokenPair { |
2020 final _TokenDifferenceKind kind; | 2020 final _TokenDifferenceKind kind; |
2021 final Token oldToken; | 2021 final Token oldToken; |
2022 final Token newToken; | 2022 final Token newToken; |
2023 _TokenPair(this.kind, this.oldToken, this.newToken); | 2023 _TokenPair(this.kind, this.oldToken, this.newToken); |
2024 } | 2024 } |
OLD | NEW |