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

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

Issue 1646363002: Rename ReferenceKind.constField and referenceKind.staticMethod. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unintentional deletion 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/summarize_elements.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
index 66f31eccc32aa9a32d76243990c2072ce029eda4..017159209fc30c8a70167fa09551dfbd3071b424 100644
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
@@ -40,11 +40,11 @@ ReferenceKind _getReferenceKind(Element element) {
return ReferenceKind.typedef;
} else if (element is PropertyAccessorElement) {
if (element.enclosingElement is ClassElement) {
- return ReferenceKind.constField;
+ return ReferenceKind.propertyAccessor;
}
return ReferenceKind.topLevelPropertyAccessor;
} else if (element is MethodElement) {
- return ReferenceKind.staticMethod;
+ return ReferenceKind.method;
} else {
throw new Exception('Unexpected element kind: ${element.runtimeType}');
}
@@ -390,7 +390,7 @@ class _CompilationUnitSerializer {
if (field.isStatic && field.isConst && field.isPublic) {
bs.add(new UnlinkedPublicNameBuilder(
name: field.name,
- kind: ReferenceKind.constField,
+ kind: ReferenceKind.propertyAccessor,
numTypeParameters: 0));
}
}
@@ -398,7 +398,7 @@ class _CompilationUnitSerializer {
if (method.isStatic && method.isPublic) {
bs.add(new UnlinkedPublicNameBuilder(
name: method.name,
- kind: ReferenceKind.staticMethod,
+ kind: ReferenceKind.method,
numTypeParameters: method.typeParameters.length));
}
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698