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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 266913017: Convert property methods into getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 7 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 | « tests/compiler/dart2js/type_combination_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index b64cecbe782b8b13c2fd8976cf03222cf149a004..ccd7ca7752ba61c32ea54d98ffcfa0b266658d25 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -20,10 +20,10 @@ import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'
GenericType instantiate(TypeDeclarationElement element,
List<DartType> arguments) {
- if (element.isClass()) {
+ if (element.isClass) {
return new InterfaceType(element, new Link<DartType>.fromList(arguments));
} else {
- assert(element.isTypedef());
+ assert(element.isTypedef);
return new TypedefType(element, new Link<DartType>.fromList(arguments));
}
}
@@ -80,9 +80,9 @@ class TypeEnvironment {
Element getElement(String name) {
var element = compiler.mainApp.find(name);
Expect.isNotNull(element);
- if (element.isClass()) {
+ if (element.isClass) {
element.ensureResolved(compiler);
- } else if (element.isTypedef()) {
+ } else if (element.isTypedef) {
element.computeType(compiler);
}
return element;
« no previous file with comments | « tests/compiler/dart2js/type_combination_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698