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

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

Issue 2742403002: 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 | « pkg/analyzer/lib/src/summary/fasta/stack_listener.dart ('k') | 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 6cf1d28584a7281a35389593ac36cab02a913955..95029888f9b21bed9f76c0f19d38ecaaddcb7d4b 100644
--- a/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
+++ b/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
@@ -433,7 +433,7 @@ abstract class ExpressionListener extends StackListener {
void handleLiteralBool(Token token) {
debugEvent("LiteralBool");
if (ignore) return;
- push(new BoolLiteral(token.value == 'true'));
+ push(new BoolLiteral(token.lexeme == 'true'));
}
void handleLiteralDouble(Token token) {
@@ -591,8 +591,8 @@ abstract class ExpressionListener extends StackListener {
var end = new ClassMemberParser(this).skipExpression(current);
var str = new StringBuffer();
while (current != end) {
- if (!["(", ",", ")"].contains(current.value)) str.write(' ');
- str.write(current.value);
+ if (!["(", ",", ")"].contains(current.lexeme)) str.write(' ');
+ str.write(current.lexeme);
current = current.next;
}
print('exp: $str');
@@ -1466,7 +1466,7 @@ class SummaryBuilder extends StackListener {
void handleOperatorName(Token operatorKeyword, Token token) {
// TODO(sigmund): convert operator names to name used by summaries.
debugEvent("OperatorName");
- push(operatorKeyword.value);
+ push(operatorKeyword.lexeme);
}
void handleQualified(Token period) {
« no previous file with comments | « pkg/analyzer/lib/src/summary/fasta/stack_listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698