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

Side by Side Diff: pkg/front_end/lib/src/fasta/parser/main.dart

Issue 2726793003: Remove package imports from itself. (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.parser.main; 5 library fasta.parser.main;
6 6
7 import 'dart:convert' show LineSplitter, UTF8; 7 import 'dart:convert' show LineSplitter, UTF8;
8 8
9 import 'dart:io' show File; 9 import 'dart:io' show File;
10 10
11 import 'package:front_end/src/fasta/scanner/token.dart' show Token; 11 import '../scanner/token.dart' show Token;
12 12
13 import 'package:front_end/src/fasta/scanner/io.dart' show readBytesFromFileSync; 13 import '../scanner/io.dart' show readBytesFromFileSync;
14 14
15 import 'package:front_end/src/fasta/scanner.dart' show scan; 15 import '../scanner.dart' show scan;
16 16
17 import 'listener.dart' show Listener; 17 import 'listener.dart' show Listener;
18 18
19 import 'top_level_parser.dart' show TopLevelParser; 19 import 'top_level_parser.dart' show TopLevelParser;
20 20
21 import 'identifier_context.dart' show IdentifierContext; 21 import 'identifier_context.dart' show IdentifierContext;
22 22
23 class DebugListener extends Listener { 23 class DebugListener extends Listener {
24 void handleIdentifier(Token token, IdentifierContext context) { 24 void handleIdentifier(Token token, IdentifierContext context) {
25 logEvent("Identifier: ${token.value}"); 25 logEvent("Identifier: ${token.value}");
(...skipping 17 matching lines...) Expand all
43 } else { 43 } else {
44 outLine(Uri.base.resolve(argument)); 44 outLine(Uri.base.resolve(argument));
45 } 45 }
46 } 46 }
47 } 47 }
48 48
49 void outLine(Uri uri) { 49 void outLine(Uri uri) {
50 new TopLevelParser(new DebugListener()) 50 new TopLevelParser(new DebugListener())
51 .parseUnit(scan(readBytesFromFileSync(uri)).tokens); 51 .parseUnit(scan(readBytesFromFileSync(uri)).tokens);
52 } 52 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/class_member_parser.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698