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

Side by Side Diff: pkg/front_end/test/scanner_roundtrip_test.dart

Issue 2784363002: flag to enable fasta scanner in analyzer (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/lib/src/scanner/scanner.dart ('k') | pkg/front_end/test/scanner_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analyzer/src/fasta/token_utils.dart'; 5 import 'package:analyzer/src/fasta/token_utils.dart';
6 import 'package:front_end/src/scanner/errors.dart' as analyzer; 6 import 'package:front_end/src/scanner/errors.dart' as analyzer;
7 import 'package:front_end/src/scanner/reader.dart' as analyzer; 7 import 'package:front_end/src/scanner/reader.dart' as analyzer;
8 import 'package:front_end/src/scanner/scanner.dart' as analyzer; 8 import 'package:front_end/src/scanner/scanner.dart' as analyzer;
9 import 'package:front_end/src/scanner/token.dart'; 9 import 'package:front_end/src/scanner/token.dart';
10 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 @override 69 @override
70 @failingTest 70 @failingTest
71 void test_comment_generic_method_type_list() { 71 void test_comment_generic_method_type_list() {
72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment 72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment
73 // syntax. 73 // syntax.
74 super.test_comment_generic_method_type_list(); 74 super.test_comment_generic_method_type_list();
75 } 75 }
76 } 76 }
77 77
78 class TestScanner extends analyzer.Scanner { 78 class TestScanner extends analyzer.Scanner {
79 TestScanner(analyzer.CharacterReader reader) : super(reader); 79 TestScanner(analyzer.CharacterReader reader) : super.create(reader);
80 80
81 @override 81 @override
82 void reportError( 82 void reportError(
83 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) { 83 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) {
84 fail('Unexpected error $errorCode while scanning offset $offset\n' 84 fail('Unexpected error $errorCode while scanning offset $offset\n'
85 ' arguments: $arguments'); 85 ' arguments: $arguments');
86 } 86 }
87 } 87 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/scanner/scanner.dart ('k') | pkg/front_end/test/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698