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

Unified Diff: lib/compiler/implementation/patch_parser.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/lib/js_helper.dart ('k') | lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/patch_parser.dart
diff --git a/lib/compiler/implementation/patch_parser.dart b/lib/compiler/implementation/patch_parser.dart
index 9d1b7d300d45bc3529333c8947ebfe099fd71220..009e22d32e98f2c9538bacf95aeb9e78165c24f2 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -181,7 +181,7 @@ class PatchParserTask extends leg.CompilerTask {
Token token = parser.parseTopLevelDeclaration(element.beginToken);
assert(identical(token, element.endToken.next));
element.cachedNode = listener.popNode();
- assert(listener.nodes.isEmpty());
+ assert(listener.nodes.isEmpty);
Link<Element> patches = element.localMembers;
applyContainerPatch(element.origin, patches);
@@ -190,7 +190,7 @@ class PatchParserTask extends leg.CompilerTask {
void applyContainerPatch(ScopeContainerElement original,
Link<Element> patches) {
- while (!patches.isEmpty()) {
+ while (!patches.isEmpty) {
Element patchElement = patches.head;
Element originalElement = original.localLookup(patchElement.name);
if (patchElement.isAccessor() && originalElement != null) {
@@ -221,7 +221,7 @@ class PatchParserTask extends leg.CompilerTask {
bool isPatchElement(Element element) {
// TODO(lrn): More checks needed if we introduce metadata for real.
// In that case, it must have the identifier "native" as metadata.
- for (Link link = element.metadata; !link.isEmpty(); link = link.tail) {
+ for (Link link = element.metadata; !link.isEmpty; link = link.tail) {
if (link.head is PatchMetadataAnnotation) return true;
}
return false;
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698