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

Unified Diff: pkg/compiler/lib/src/scanner/array_based_scanner.dart

Issue 1878253002: Adds support for remaining generic method syntax constructs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review response Created 4 years, 8 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/scanner/array_based_scanner.dart
diff --git a/pkg/compiler/lib/src/scanner/array_based_scanner.dart b/pkg/compiler/lib/src/scanner/array_based_scanner.dart
index 27540a48b03b5f47111fe608eea63c932eddfa5c..2496daa3d0d035471370e45d65e1bb0d1ba29c91 100644
--- a/pkg/compiler/lib/src/scanner/array_based_scanner.dart
+++ b/pkg/compiler/lib/src/scanner/array_based_scanner.dart
@@ -63,8 +63,8 @@ abstract class ArrayBasedScanner extends AbstractScanner {
*/
void appendKeywordToken(Keyword keyword) {
String syntax = keyword.syntax;
- // Type parameters and arguments cannot contain 'this' or 'super'.
- if (identical(syntax, 'this') || identical(syntax, 'super')) {
+ // Type parameters and arguments cannot contain 'this'.
+ if (identical(syntax, 'this')) {
discardOpenLt();
}
tail.next = new KeywordToken(keyword, tokenStart);

Powered by Google App Engine
This is Rietveld 408576698