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

Side by Side Diff: pkg/analyzer/example/parser_driver.dart

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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/analysis_server/test/stress/replay/replay.dart ('k') | pkg/analyzer/lib/analyzer.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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/dart/ast/visitor.dart'; 9 import 'package:analyzer/dart/ast/visitor.dart';
10 import 'package:analyzer/error/error.dart';
11 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/scanner/reader.dart'; 12 import 'package:analyzer/src/dart/scanner/reader.dart';
11 import 'package:analyzer/src/dart/scanner/scanner.dart'; 13 import 'package:analyzer/src/dart/scanner/scanner.dart';
12 import 'package:analyzer/src/generated/error.dart';
13 import 'package:analyzer/src/generated/parser.dart'; 14 import 'package:analyzer/src/generated/parser.dart';
14 15
15 main(List<String> args) { 16 main(List<String> args) {
16 print('working dir ${new File('.').resolveSymbolicLinksSync()}'); 17 print('working dir ${new File('.').resolveSymbolicLinksSync()}');
17 18
18 if (args.length == 0) { 19 if (args.length == 0) {
19 print('Usage: parser_driver [files_to_parse]'); 20 print('Usage: parser_driver [files_to_parse]');
20 exit(0); 21 exit(0);
21 } 22 }
22 23
(...skipping 26 matching lines...) Expand all
49 return super.visitNode(node); 50 return super.visitNode(node);
50 } 51 }
51 } 52 }
52 53
53 class _ErrorCollector extends AnalysisErrorListener { 54 class _ErrorCollector extends AnalysisErrorListener {
54 List<AnalysisError> errors; 55 List<AnalysisError> errors;
55 _ErrorCollector() : errors = new List<AnalysisError>(); 56 _ErrorCollector() : errors = new List<AnalysisError>();
56 @override 57 @override
57 onError(error) => errors.add(error); 58 onError(error) => errors.add(error);
58 } 59 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/stress/replay/replay.dart ('k') | pkg/analyzer/lib/analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698