|
|
Create ElementAnnotation objects prior to resolution.
This is a prerequisite to fixing #25285
(ConstantEvaluationTarget_Annotation consumes too much memory,
shouldn't exist). By creating the ElementAnnotation objects early, we
will be able to refer to them from the ConstantFinder; this will allow
us to use the ElementAnnotation objects as constant evaluation
targets.
Note: there is a small semantic change. Previously, Element.metadata
only contained ElementAnnotation objects for annotations that were
successfully resolved. Now, it contains ElementAnnotation objects for
all annotations.
R=brianwilkerson@google.com
Committed: https://github.com/dart-lang/sdk/commit/50248829053444be8299e19c342d0bb348506e3a
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+549 lines, -162 lines) |
Patch |
 |
M |
pkg/analyzer/lib/src/dart/element/builder.dart
|
View
|
|
28 chunks |
+117 lines, -4 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/lib/src/dart/element/element.dart
|
View
|
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/lib/src/generated/element_resolver.dart
|
View
|
|
14 chunks |
+43 lines, -74 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/lib/src/generated/incremental_resolver.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
pkg/analyzer/lib/src/generated/resolver.dart
|
View
|
|
3 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/test/generated/all_the_rest_test.dart
|
View
|
|
65 chunks |
+287 lines, -66 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/test/generated/incremental_resolver_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
pkg/analyzer/test/generated/non_error_resolver_test.dart
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/test/generated/resolver_test.dart
|
View
|
|
1 chunk |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
pkg/analyzer/test/src/task/dart_test.dart
|
View
|
|
2 chunks |
+69 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (2 generated)
|