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

Side by Side Diff: pkg/compiler/lib/src/parser/diet_parser_task.dart

Issue 2675103003: Refactor BackendHelpers to be reusageable with KernelWorldBuilder (Closed)
Patch Set: Updated cf. comments Created 3 years, 10 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/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/parser/element_listener.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dart2js.parser.diet.task; 5 library dart2js.parser.diet.task;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' show Backend; 8 import '../common/backend_api.dart' show Backend;
9 import '../common/tasks.dart' show CompilerTask, Measurer; 9 import '../common/tasks.dart' show CompilerTask, Measurer;
10 import '../elements/elements.dart' show CompilationUnitElement; 10 import '../elements/elements.dart' show CompilationUnitElement;
11 import '../id_generator.dart'; 11 import '../id_generator.dart';
12 import 'package:front_end/src/fasta/scanner.dart' show Token; 12 import 'package:front_end/src/fasta/scanner.dart' show Token;
13 import 'element_listener.dart' show ElementListener, ScannerOptions; 13 import 'element_listener.dart' show ElementListener, ScannerOptions;
14 import 'package:front_end/src/fasta/parser.dart' 14 import 'package:front_end/src/fasta/parser.dart'
15 show Listener, ParserError, TopLevelParser; 15 show Listener, ParserError, TopLevelParser;
16 16
17 class PartialParser extends TopLevelParser { 17 class PartialParser extends TopLevelParser {
18 PartialParser(Listener listener) 18 PartialParser(Listener listener) : super(listener);
19 : super(listener);
20 19
21 Token parseFormalParameters(Token token) => skipFormalParameters(token); 20 Token parseFormalParameters(Token token) => skipFormalParameters(token);
22 } 21 }
23 22
24 class DietParserTask extends CompilerTask { 23 class DietParserTask extends CompilerTask {
25 final IdGenerator _idGenerator; 24 final IdGenerator _idGenerator;
26 final Backend _backend; 25 final Backend _backend;
27 final DiagnosticReporter _reporter; 26 final DiagnosticReporter _reporter;
28 27
29 DietParserTask( 28 DietParserTask(
(...skipping 12 matching lines...) Expand all
42 try { 41 try {
43 parser.parseUnit(tokens); 42 parser.parseUnit(tokens);
44 } on ParserError catch (_) { 43 } on ParserError catch (_) {
45 // TODO(johnniwinther): assert that the error was reported once there is 44 // TODO(johnniwinther): assert that the error was reported once there is
46 // a [hasErrorBeenReported] field in [DiagnosticReporter] 45 // a [hasErrorBeenReported] field in [DiagnosticReporter]
47 // The error should have already been reported by the parser. 46 // The error should have already been reported by the parser.
48 } 47 }
49 }); 48 });
50 } 49 }
51 } 50 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698