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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/recover.dart

Issue 2872433005: more work aligning fasta.Token with analyzer.Token (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/front_end/lib/src/fasta/scanner/recover.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/recover.dart b/pkg/front_end/lib/src/fasta/scanner/recover.dart
index 9c73d5df6a2f54d11306e09d32ab349606290a6c..48be063994d085682ed15adc274ec303c7e7674d 100644
--- a/pkg/front_end/lib/src/fasta/scanner/recover.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/recover.dart
@@ -167,7 +167,7 @@ Token defaultRecoveryStrategy(
error = next;
} else {
errorTail.next = next;
- next.previousToken = errorTail;
+ next.previous = errorTail;
}
errorTail = next;
next = next.next;
@@ -208,23 +208,22 @@ Token defaultRecoveryStrategy(
good = current;
} else {
goodTail.next = current;
- current.previousToken = goodTail;
+ current.previous = goodTail;
}
beforeGoodTail = goodTail;
goodTail = current;
}
- error.previousToken = new SymbolToken.eof(-1)..next = error;
+ error.previous = new SymbolToken.eof(-1)..next = error;
Token tail;
if (good != null) {
errorTail.next = good;
- good.previousToken = errorTail;
+ good.previous = errorTail;
tail = goodTail;
} else {
tail = errorTail;
}
- if (!tail.isEof)
- tail.next = new SymbolToken.eof(tail.end)..previousToken = tail;
+ if (!tail.isEof) tail.next = new SymbolToken.eof(tail.end)..previous = tail;
return error;
}

Powered by Google App Engine
This is Rietveld 408576698