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

Unified Diff: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart

Issue 2746973002: fix fasta summary builder (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
diff --git a/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart b/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
index 33b217ed92ac5a10b44ef306c88e7df47cb43e09..6cf1d28584a7281a35389593ac36cab02a913955 100644
--- a/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
+++ b/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
@@ -208,7 +208,7 @@ abstract class ExpressionListener extends StackListener {
void beginLiteralString(Token token) {
debugEvent("beginLiteralString");
if (ignore) return;
- push(new StringLiteral(token.value));
+ push(new StringLiteral(token.lexeme));
}
void beginUnnamedFunction(token) {
@@ -421,7 +421,7 @@ abstract class ExpressionListener extends StackListener {
void handleIdentifier(Token token, IdentifierContext context) {
debugEvent("Identifier");
if (ignore) return;
- push(new Ref(token.value));
+ push(new Ref(token.lexeme));
}
void handleIsOperator(Token operator, Token not, Token endToken) {
@@ -439,13 +439,13 @@ abstract class ExpressionListener extends StackListener {
void handleLiteralDouble(Token token) {
debugEvent("LiteralDouble");
if (ignore) return;
- push(new DoubleLiteral(double.parse(token.value)));
+ push(new DoubleLiteral(double.parse(token.lexeme)));
}
void handleLiteralInt(Token token) {
debugEvent("LiteralInt");
if (ignore) return;
- push(new IntLiteral(int.parse(token.value)));
+ push(new IntLiteral(int.parse(token.lexeme)));
}
void handleLiteralList(count, begin, constKeyword, end) {
@@ -549,7 +549,7 @@ abstract class ExpressionListener extends StackListener {
void handleStringPart(token) {
debugEvent("handleStringPart");
if (ignore) return;
- push(new StringLiteral(token.value));
+ push(new StringLiteral(token.lexeme));
}
void handleType(Token beginToken, Token endToken) {
@@ -773,7 +773,7 @@ class SummaryBuilder extends StackListener {
void beginClassDeclaration(Token beginToken, Token name) {
debugEvent("beginClass");
var classScope = scope = new ClassScope(scope);
- classScope.className = name.value;
+ classScope.className = name.lexeme;
}
void beginCompilationUnit(Token token) {
@@ -814,7 +814,7 @@ class SummaryBuilder extends StackListener {
void beginLiteralString(Token token) {
debugEvent("beginLiteralString");
- push(token.value.substring(1, token.value.length - 1));
+ push(token.lexeme.substring(1, token.lexeme.length - 1));
}
void beginMember(Token token) {
@@ -1478,7 +1478,7 @@ class SummaryBuilder extends StackListener {
void handleStringPart(token) {
debugEvent("handleStringPart");
- push(token.value.substring(1, token.value.length - 1));
+ push(token.lexeme.substring(1, token.lexeme.length - 1));
}
void handleType(Token beginToken, Token endToken) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698