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

Side by Side Diff: pkg/analyzer/bin/analyzer.dart

Issue 325473002: Add intern support to analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | 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 /** The entry point for the analyzer. */ 7 /** The entry point for the analyzer. */
8 library analyzer; 8 library analyzer;
9 9
10 import 'dart:async'; 10 import 'dart:async';
11 import 'dart:convert'; 11 import 'dart:convert';
12 import 'dart:io'; 12 import 'dart:io';
13 13
14 import 'package:analyzer/src/analyzer_impl.dart'; 14 import 'package:analyzer/src/analyzer_impl.dart';
15 import 'package:analyzer/src/generated/engine.dart'; 15 import 'package:analyzer/src/generated/engine.dart';
16 import 'package:analyzer/src/generated/error.dart'; 16 import 'package:analyzer/src/generated/error.dart';
17 import 'package:analyzer/src/generated/interner.dart';
17 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem; 18 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem;
19 import 'package:analyzer/src/generated/java_engine.dart';
18 import 'package:analyzer/options.dart'; 20 import 'package:analyzer/options.dart';
19 21
20 void main(args) { 22 void main(args) {
23 StringUtilities.INTERNER = new MappedInterner();
21 CommandLineOptions options = CommandLineOptions.parse(args); 24 CommandLineOptions options = CommandLineOptions.parse(args);
22 if (options.shouldBatch) { 25 if (options.shouldBatch) {
23 BatchRunner.runAsBatch(args, (List<String> args) { 26 BatchRunner.runAsBatch(args, (List<String> args) {
24 CommandLineOptions options = CommandLineOptions.parse(args); 27 CommandLineOptions options = CommandLineOptions.parse(args);
25 return _runAnalyzer(options, false); 28 return _runAnalyzer(options, false);
26 }); 29 });
27 } else { 30 } else {
28 _runAnalyzer(options, false); 31 _runAnalyzer(options, false);
29 } 32 }
30 } 33 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon ds}ms'); 135 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon ds}ms');
133 } catch (e, stackTrace) { 136 } catch (e, stackTrace) {
134 stderr.writeln(e); 137 stderr.writeln(e);
135 stderr.writeln(stackTrace); 138 stderr.writeln(stackTrace);
136 stderr.writeln('>>> EOF STDERR'); 139 stderr.writeln('>>> EOF STDERR');
137 stdout.writeln('>>> TEST CRASH'); 140 stdout.writeln('>>> TEST CRASH');
138 } 141 }
139 }); 142 });
140 } 143 }
141 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698