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

Unified Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 2872453004: cleanup TokenType var names (Closed)
Patch Set: Created 3 years, 7 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: pkg/compiler/lib/src/tree/nodes.dart
diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
index 188d02843c013bf4494b5d308da43d50d8bf49cf..c4dd6f21b2b9dcbe22f4543cd9c66e3ab0c9939c 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -1527,7 +1527,7 @@ class Return extends Statement {
bool get hasExpression => expression != null;
/// `true` if this return is of the form `=> e;`.
- bool get isArrowBody => beginToken.info == TokenType.FUNCTION;
+ bool get isArrowBody => beginToken.type == TokenType.FUNCTION;
accept(Visitor visitor) => visitor.visitReturn(this);
« no previous file with comments | « pkg/compiler/lib/src/serialization/serialization.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698