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

Unified Diff: pkg/analyzer/lib/src/summary/summarize_ast.dart

Issue 1636113002: Serialize static constant field references. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/summarize_ast.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart
index a930bae80b5d376b440c4804bd4c77243dd77e3e..beeeacf96bc89200a90dabab5b93e8b9cd6d9ef7 100644
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart
@@ -56,6 +56,19 @@ class _ConstExprSerializer extends AbstractConstExprSerializer {
}
@override
+ EntityRefBuilder serializePropertyAccess(PropertyAccess access) {
+ Expression target = access.target;
+ if (target is Identifier) {
+ EntityRefBuilder targetRef = serializeIdentifier(target);
+ return new EntityRefBuilder(
+ reference: visitor.serializeReference(
+ targetRef.reference, access.propertyName.name));
+ } else {
+ throw new StateError('Unexpected target type: ${target.runtimeType}');
Paul Berry 2016/01/26 20:52:49 Add a TODO comment here. We're going to need to b
scheglov 2016/01/26 21:02:29 Done.
+ }
+ }
+
+ @override
EntityRefBuilder serializeType(TypeName node) {
return visitor.serializeTypeName(node);
}

Powered by Google App Engine
This is Rietveld 408576698