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

Unified Diff: lib/compiler/implementation/js_backend/emitter.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
« no previous file with comments | « lib/compiler/implementation/js/printer.dart ('k') | lib/compiler/implementation/js_backend/namer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/js_backend/emitter.dart
diff --git a/lib/compiler/implementation/js_backend/emitter.dart b/lib/compiler/implementation/js_backend/emitter.dart
index ad1d1fa05d686be9a5b364562f20db7ee0d1799d..1ed02628b329e4ce86fdd80ab42243c8e612b6b0 100644
--- a/lib/compiler/implementation/js_backend/emitter.dart
+++ b/lib/compiler/implementation/js_backend/emitter.dart
@@ -610,7 +610,7 @@ function(prototype, staticName, fieldName, getterName, lazyValue) {
}
FunctionElement function = member;
FunctionSignature parameters = function.computeSignature(compiler);
- if (!parameters.optionalParameters.isEmpty()) {
+ if (!parameters.optionalParameters.isEmpty) {
addParameterStubs(member, defineInstanceMember);
}
} else if (!member.isField()) {
@@ -1181,7 +1181,7 @@ $classesCollector.$mangledName = {'':
ConstantHandler handler = compiler.constantHandler;
List<VariableElement> lazyFields =
handler.getLazilyInitializedFieldsForEmission();
- if (!lazyFields.isEmpty()) {
+ if (!lazyFields.isEmpty) {
needsLazyInitializer = true;
for (VariableElement element in lazyFields) {
assert(compiler.codegenWorld.generatedBailoutCode[element] == null);
@@ -1250,7 +1250,7 @@ $classesCollector.$mangledName = {'':
assert(invariant(member, member.isDeclaration));
if (member.isGetter() || member.isField()) {
Set<Selector> selectors = compiler.codegenWorld.invokedNames[member.name];
- if (selectors != null && !selectors.isEmpty()) {
+ if (selectors != null && !selectors.isEmpty) {
emitCallStubForGetter(member, selectors, defineInstanceMember);
}
} else if (member.isFunction()) {
@@ -1262,7 +1262,7 @@ $classesCollector.$mangledName = {'':
void emitNoSuchMethodHandlers(DefineMemberFunction defineInstanceMember) {
// Do not generate no such method handlers if there is no class.
- if (compiler.codegenWorld.instantiatedClasses.isEmpty()) return;
+ if (compiler.codegenWorld.instantiatedClasses.isEmpty) return;
String noSuchMethodName =
namer.publicInstanceMethodNameByArity(Compiler.NO_SUCH_METHOD, 2);
« no previous file with comments | « lib/compiler/implementation/js/printer.dart ('k') | lib/compiler/implementation/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698