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

Unified Diff: lib/compiler/implementation/runtime_types.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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: lib/compiler/implementation/runtime_types.dart
diff --git a/lib/compiler/implementation/runtime_types.dart b/lib/compiler/implementation/runtime_types.dart
index e1a51e6f22bc19d67b8c8c9c5327ec223bf90999..9b0820f10ea82b141eba018c74a2c9781f94097b 100644
--- a/lib/compiler/implementation/runtime_types.dart
+++ b/lib/compiler/implementation/runtime_types.dart
@@ -33,7 +33,7 @@ class RuntimeTypeInformation {
bool hasTypeArguments(DartType type) {
if (type is InterfaceType) {
InterfaceType interfaceType = type;
- return !interfaceType.arguments.isEmpty();
+ return !interfaceType.arguments.isEmpty;
}
return false;
}
@@ -69,7 +69,7 @@ class RuntimeTypeInformation {
*/
String generateRuntimeTypeString(ClassElement element, int numberOfInputs) {
String elementName = getName(element);
- if (element.typeVariables.isEmpty()) return "'$elementName'";
+ if (element.typeVariables.isEmpty) return "'$elementName'";
String stringify(_, bool hasValue) => hasValue ? "' + # + '" : "Dynamic";
String arguments = stringifyTypeVariables(element.typeVariables,
numberOfInputs,
« no previous file with comments | « lib/compiler/implementation/resolution/scope.dart ('k') | lib/compiler/implementation/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698