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/scanner/class_element_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
Index: lib/compiler/implementation/scanner/class_element_parser.dart
diff --git a/lib/compiler/implementation/scanner/class_element_parser.dart b/lib/compiler/implementation/scanner/class_element_parser.dart
index 0e536d92af5e715d2643f2996b8036edec642b2b..f86720c6a4797233573f6f6ab96b802be667aa46 100644
--- a/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -41,7 +41,7 @@ class PartialClassElement extends ClassElement {
Token token = parser.parseTopLevelDeclaration(beginToken);
assert(identical(token, endToken.next));
cachedNode = listener.popNode();
- assert(listener.nodes.isEmpty());
+ assert(listener.nodes.isEmpty);
});
compiler.patchParser.measure(() {
if (isPatched) {
@@ -169,7 +169,7 @@ class MemberListener extends NodeListener {
}
void addMember(Element memberElement) {
- for (Link link = metadata; !link.isEmpty(); link = link.tail) {
+ for (Link link = metadata; !link.isEmpty; link = link.tail) {
memberElement.addMetadata(link.head);
}
metadata = const Link<MetadataAnnotation>();
« no previous file with comments | « lib/compiler/implementation/scanner/byte_strings.dart ('k') | lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698