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

Unified Diff: pkg/analyzer/lib/src/summary/prelink.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
Index: pkg/analyzer/lib/src/summary/prelink.dart
diff --git a/pkg/analyzer/lib/src/summary/prelink.dart b/pkg/analyzer/lib/src/summary/prelink.dart
index 1e3caad8ac3830578673473d2069fb3651a7c4bd..b885a7b4c29bd0c5f3d26fd05eadd403416634e8 100644
--- a/pkg/analyzer/lib/src/summary/prelink.dart
+++ b/pkg/analyzer/lib/src/summary/prelink.dart
@@ -261,7 +261,7 @@ class _Prelinker {
cls.fields.forEach((field) {
if (field.isStatic && field.isConst) {
namespace[field.name] =
- new _Meaning(unitNum, ReferenceKind.constField, 0, 0);
+ new _Meaning(unitNum, ReferenceKind.propertyAccessor, 0, 0);
}
});
cls.executables.forEach((executable) {
@@ -272,7 +272,7 @@ class _Prelinker {
} else if (executable.kind ==
UnlinkedExecutableKind.functionOrMethod &&
executable.isStatic) {
- kind = ReferenceKind.staticMethod;
+ kind = ReferenceKind.method;
}
if (kind != null) {
namespace[executable.name] = new _Meaning(
@@ -417,7 +417,7 @@ class _Prelinker {
if (namespace == null && reference.name == 'length') {
ReferenceKind prefixKind = references[reference.prefixReference].kind;
if (prefixKind == ReferenceKind.topLevelPropertyAccessor ||
- prefixKind == ReferenceKind.constField) {
+ prefixKind == ReferenceKind.propertyAccessor) {
references
.add(new LinkedReferenceBuilder(kind: ReferenceKind.length));
continue;
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/public_namespace_computer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698