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

Unified Diff: lib/compiler/implementation/scanner/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/parser.dart
diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
index 47d8c61b5aa04f31a32f8ed8250fc7587eb046c8..14ad03b2e9f843dda011a5bb1486cf1f09784c4e 100644
--- a/lib/compiler/implementation/scanner/parser.dart
+++ b/lib/compiler/implementation/scanner/parser.dart
@@ -573,13 +573,13 @@ class Parser {
listener.beginTopLevelMember(token);
Link<Token> identifiers = findMemberName(token);
- if (identifiers.isEmpty()) {
+ if (identifiers.isEmpty) {
return listener.unexpected(start);
}
Token name = identifiers.head;
identifiers = identifiers.tail;
Token getOrSet;
- if (!identifiers.isEmpty()) {
+ if (!identifiers.isEmpty) {
String value = identifiers.head.stringValue;
if ((identical(value, 'get')) || (identical(value, 'set'))) {
getOrSet = identifiers.head;
@@ -587,7 +587,7 @@ class Parser {
}
}
Token type;
- if (!identifiers.isEmpty()) {
+ if (!identifiers.isEmpty) {
if (isValidTypeReference(identifiers.head)) {
type = identifiers.head;
identifiers = identifiers.tail;
@@ -771,7 +771,7 @@ class Parser {
void parseModifierList(Link<Token> tokens) {
int count = 0;
- for (; !tokens.isEmpty(); tokens = tokens.tail) {
+ for (; !tokens.isEmpty; tokens = tokens.tail) {
Token token = tokens.head;
if (isModifier(token)) {
parseModifier(token);
@@ -867,26 +867,26 @@ class Parser {
listener.beginMember(token);
Link<Token> identifiers = findMemberName(token);
- if (identifiers.isEmpty()) {
+ if (identifiers.isEmpty) {
return listener.unexpected(start);
}
Token name = identifiers.head;
identifiers = identifiers.tail;
- if (!identifiers.isEmpty()) {
+ if (!identifiers.isEmpty) {
if (optional('operator', identifiers.head)) {
name = identifiers.head;
identifiers = identifiers.tail;
}
}
Token getOrSet;
- if (!identifiers.isEmpty()) {
+ if (!identifiers.isEmpty) {
if (isGetOrSet(identifiers.head)) {
getOrSet = identifiers.head;
identifiers = identifiers.tail;
}
}
Token type;
- if (!identifiers.isEmpty()) {
+ if (!identifiers.isEmpty) {
if (isValidTypeReference(identifiers.head)) {
type = identifiers.head;
identifiers = identifiers.tail;
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | lib/compiler/implementation/scanner/string_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698