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

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

Issue 50413005: Reapply "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 2
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analyzer/src/generated/java_core.dart' show CharSequence; 9 import 'package:analyzer/src/generated/java_core.dart' show CharSequence;
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
11 import 'package:analyzer/src/generated/error.dart'; 11 import 'package:analyzer/src/generated/error.dart';
12 import 'package:analyzer/src/generated/parser.dart'; 12 import 'package:analyzer/src/generated/parser.dart';
13 import 'package:analyzer/src/generated/scanner.dart'; 13 import 'package:analyzer/src/generated/scanner.dart';
14 14
15 15
16 main() { 16 main() {
17 17
18 print('working dir ${new File('.').fullPathSync()}'); 18 print('working dir ${new File('.').resolveSymbolicLinksSync()}');
19 19
20 var args = new Options().arguments; 20 var args = new Options().arguments;
21 if (args.length == 0) { 21 if (args.length == 0) {
22 print('Usage: parser_driver [files_to_parse]'); 22 print('Usage: parser_driver [files_to_parse]');
23 exit(0); 23 exit(0);
24 } 24 }
25 25
26 for (var arg in args) { 26 for (var arg in args) {
27 _parse(new File(arg)); 27 _parse(new File(arg));
28 } 28 }
(...skipping 23 matching lines...) Expand all
52 onError(error) => errors.add(error); 52 onError(error) => errors.add(error);
53 } 53 }
54 54
55 class _ASTVisitor extends GeneralizingASTVisitor { 55 class _ASTVisitor extends GeneralizingASTVisitor {
56 visitNode(ASTNode node) { 56 visitNode(ASTNode node) {
57 print('${node.runtimeType} : <"${node.toString()}">'); 57 print('${node.runtimeType} : <"${node.toString()}">');
58 return super.visitNode(node); 58 return super.visitNode(node);
59 } 59 }
60 } 60 }
61 61
OLDNEW
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart ('k') | pkg/analyzer/example/resolver_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698