|
Prepare for decoupling analyzer ASTs from element model.
This CL creates top level accessor functions which may be used to map from AST data structures to their corresponding elements and types, and begins using those accessor functions throughout the SDK. It also adds empty interfaces ResolutionTarget and ResolutionType, which are implemented by Element and DartType respectively.
In a future CL, I will change the types stored in the AST to ResolutionTarget and ResolutionType, rather than specific element types; this will decouple the ASTs from the element model. The presence of the accessor functions will allow clients to continue accessing elements and types in a type-safe way.
R=asgerf@google.com, brianwilkerson@google.com, scheglov@google.com, vsm@google.com
Committed: https://github.com/dart-lang/sdk/commit/ae6fd961a1e3a5d0009b01b6a3f9c424a7b61ab5
Total comments: 6
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1469 lines, -364 lines) |
Patch |
|
M |
pkg/analysis_server/lib/src/analysis_server.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/computer/computer_highlights2.dart
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/edit/edit_domain.dart
|
View
|
1
2
|
5 chunks |
+18 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/operation/operation_analysis.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart
|
View
|
1
2
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/completion/dart/optype.dart
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/correction/assist_internal.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/correction/fix_internal.dart
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/correction/namespace.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/index/index.dart
|
View
|
1
2
|
3 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/index/index_unit.dart
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/test/analysis/update_content_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/test/services/correction/assist_test.dart
|
View
|
1
2
|
4 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/analysis_server/test/services/correction/fix_test.dart
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart
|
View
|
1
2
|
21 chunks |
+68 lines, -33 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/benchmark/errors_in_all_libraries.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
A |
pkg/analyzer/lib/dart/ast/resolution_base_classes.dart
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/analyzer/lib/dart/ast/resolution_map.dart
|
View
|
1
2
|
1 chunk |
+318 lines, -0 lines |
4 comments
|
Download
|
|
A |
pkg/analyzer/lib/dart/ast/standard_resolution_map.dart
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/dart/element/element.dart
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/dart/element/type.dart
|
View
|
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/context/context.dart
|
View
|
1
2
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/dart/analysis/index.dart
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
A |
pkg/analyzer/lib/src/dart/ast/resolution_map.dart
|
View
|
1
2
|
1 chunk |
+352 lines, -0 lines |
2 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/dart/constant/utilities.dart
|
View
|
1
2
|
5 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/generated/error_verifier.dart
|
View
|
1
2
|
8 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/generated/resolver.dart
|
View
|
1
2
|
16 chunks |
+32 lines, -16 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/task/dart.dart
|
View
|
1
2
|
6 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/lib/src/task/strong/checker.dart
|
View
|
1
2
|
16 chunks |
+74 lines, -62 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/element_resolver_test.dart
|
View
|
1
2
|
10 chunks |
+21 lines, -17 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/non_error_resolver_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/resolver_test.dart
|
View
|
1
2
|
19 chunks |
+61 lines, -29 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/resolver_test_case.dart
|
View
|
1
2
|
4 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/simple_resolver_test.dart
|
View
|
1
2
|
10 chunks |
+48 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/generated/strong_mode_test.dart
|
View
|
1
2
|
12 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/context/context_test.dart
|
View
|
1
2
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/dart/analysis/driver_test.dart
|
View
|
1
2
|
6 chunks |
+17 lines, -6 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/dart/analysis/search_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/dart/constant/evaluation_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/summary/resynthesize_common.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/task/dart_test.dart
|
View
|
1
2
|
23 chunks |
+99 lines, -42 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/task/incremental_element_builder_test.dart
|
View
|
1
2
|
8 chunks |
+29 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/src/task/strong/strong_test_helper.dart
|
View
|
1
2
|
4 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
pkg/analyzer/test/utils.dart
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/dev_compiler/lib/src/compiler/code_generator.dart
|
View
|
1
2
|
26 chunks |
+59 lines, -31 lines |
0 comments
|
Download
|
|
M |
pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart
|
View
|
1
2
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/dev_compiler/lib/src/compiler/source_map_printer.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/analyzer/ast_from_analyzer.dart
|
View
|
1
2
|
8 chunks |
+21 lines, -7 lines |
0 comments
|
Download
|
Total messages: 13 (2 generated)
|