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

Unified Diff: pkg/analyzer/test/src/dart/element/element_test.dart

Issue 2489363002: Rename setters synthetic/static to isSynthetic/isStatic. (Closed)
Patch Set: Created 4 years, 1 month 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/test/generated/inheritance_manager_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/dart/element/element_test.dart
diff --git a/pkg/analyzer/test/src/dart/element/element_test.dart b/pkg/analyzer/test/src/dart/element/element_test.dart
index 394fcd5620ce89f8222530334f4366400d0dbcb2..f659b070feebb0d848cf5fdfd7febb73277e6ac0 100644
--- a/pkg/analyzer/test/src/dart/element/element_test.dart
+++ b/pkg/analyzer/test/src/dart/element/element_test.dart
@@ -282,7 +282,7 @@ abstract class A<K, V> = Object with MapMixin<K, V>;
ElementFactory.getterElement("foo", false, null);
classA.accessors = <PropertyAccessorElement>[getter];
// "foo" is static
- getter.static = true;
+ getter.isStatic = true;
expect(classA.hasStaticMember, isTrue);
}
@@ -291,7 +291,7 @@ abstract class A<K, V> = Object with MapMixin<K, V>;
MethodElementImpl method = ElementFactory.methodElement("foo", null);
classA.methods = <MethodElement>[method];
// "foo" is static
- method.static = true;
+ method.isStatic = true;
expect(classA.hasStaticMember, isTrue);
}
@@ -301,7 +301,7 @@ abstract class A<K, V> = Object with MapMixin<K, V>;
ElementFactory.setterElement("foo", false, null);
classA.accessors = <PropertyAccessorElement>[setter];
// "foo" is static
- setter.static = true;
+ setter.isStatic = true;
expect(classA.hasStaticMember, isTrue);
}
@@ -1942,7 +1942,7 @@ class FunctionTypeImplTest extends EngineTestCase {
// the user (and hence can't participate in circularities).
FunctionTypeAliasElementImpl f =
ElementFactory.functionTypeAliasElement('f');
- f.synthetic = true;
+ f.isSynthetic = true;
FunctionTypeImpl type = f.type;
expect(type.newPrune, isNull);
}
« no previous file with comments | « pkg/analyzer/test/generated/inheritance_manager_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698