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

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

Issue 2738313002: rename fasta.Token.value --> lexeme (Closed)
Patch Set: merge Created 3 years, 9 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 | « pkg/compiler/lib/src/string_validator.dart ('k') | pkg/compiler/lib/src/tree/prettyprint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 744bdfe62a7ba6005864941db4dbab9f54016db4..0a8232e347db9d3432fb45ed9483fa34ab9d52da 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -1091,7 +1091,7 @@ class AsyncModifier extends Node {
Token getEndToken() => starToken != null ? starToken : asyncToken;
/// Is `true` if this modifier is either `async` or `async*`.
- bool get isAsynchronous => asyncToken.value == 'async';
+ bool get isAsynchronous => asyncToken.lexeme == 'async';
/// Is `true` if this modifier is either `sync*` or `async*`.
bool get isYielding => starToken != null;
@@ -1218,7 +1218,7 @@ class LiteralInt extends Literal<int> {
if (identical(valueToken.kind, Tokens.PLUS_TOKEN)) {
valueToken = valueToken.next;
}
- return int.parse(valueToken.value);
+ return int.parse(valueToken.lexeme);
} on FormatException catch (ex) {
(this.handler)(token, ex);
}
@@ -1241,7 +1241,7 @@ class LiteralDouble extends Literal<double> {
if (identical(valueToken.kind, Tokens.PLUS_TOKEN)) {
valueToken = valueToken.next;
}
- return double.parse(valueToken.value);
+ return double.parse(valueToken.lexeme);
} on FormatException catch (ex) {
(this.handler)(token, ex);
}
@@ -1260,7 +1260,7 @@ class LiteralBool extends Literal<bool> {
bool get value {
if (identical(token.stringValue, 'true')) return true;
if (identical(token.stringValue, 'false')) return false;
- (this.handler)(token, "not a bool ${token.value}");
+ (this.handler)(token, "not a bool ${token.lexeme}");
throw false;
}
@@ -1433,7 +1433,7 @@ class LiteralSymbol extends Expression {
class Identifier extends Expression with StoredTreeElementMixin {
final Token token;
- String get source => token.value;
+ String get source => token.lexeme;
Identifier(Token this.token);
« no previous file with comments | « pkg/compiler/lib/src/string_validator.dart ('k') | pkg/compiler/lib/src/tree/prettyprint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698