| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 analyzer_impl; | 5 library analyzer_impl; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'generated/constant.dart'; | 10 import 'generated/constant.dart'; |
| 11 import 'generated/engine.dart'; | 11 import 'generated/engine.dart'; |
| 12 import 'generated/element.dart'; | 12 import 'generated/element.dart'; |
| 13 import 'generated/error.dart'; | 13 import 'generated/error.dart'; |
| 14 import 'generated/java_io.dart'; | 14 import 'generated/java_io.dart'; |
| 15 import 'generated/sdk_io.dart'; | 15 import 'generated/sdk_io.dart'; |
| 16 import 'generated/source_io.dart'; | 16 import 'generated/source_io.dart'; |
| 17 import '../options.dart'; | 17 import '../options.dart'; |
| 18 | 18 |
| 19 import 'dart:collection'; | 19 import 'dart:collection'; |
| 20 | 20 |
| 21 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem; | 21 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem; |
| 22 import 'package:analyzer/src/error_formatter.dart'; | 22 import 'package:analyzer/src/error_formatter.dart'; |
| 23 import 'package:analyzer/file_system/physical_file_system.dart'; | 23 import 'package:analyzer/file_system/physical_file_system.dart'; |
| 24 import 'package:analyzer/source/package_map_resolver.dart'; | 24 import 'package:analyzer/source/package_map_resolver.dart'; |
| 25 import 'package:analyzer/source/package_map_provider.dart'; | 25 import 'package:analyzer/source/package_map_provider.dart'; |
| 26 import 'package:analyzer/source/pub_package_map_provider.dart'; |
| 26 | 27 |
| 27 /** | 28 /** |
| 28 * The maximum number of sources for which AST structures should be kept in the
cache. | 29 * The maximum number of sources for which AST structures should be kept in the
cache. |
| 29 */ | 30 */ |
| 30 const int _MAX_CACHE_SIZE = 512; | 31 const int _MAX_CACHE_SIZE = 512; |
| 31 | 32 |
| 32 DirectoryBasedDartSdk sdk; | 33 DirectoryBasedDartSdk sdk; |
| 33 | 34 |
| 34 /// Analyzes single library [File]. | 35 /// Analyzes single library [File]. |
| 35 class AnalyzerImpl { | 36 class AnalyzerImpl { |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 402 } |
| 402 } | 403 } |
| 403 | 404 |
| 404 @override | 405 @override |
| 405 void logInformation2(String message, Exception exception) { | 406 void logInformation2(String message, Exception exception) { |
| 406 if (log) { | 407 if (log) { |
| 407 stdout.writeln(message); | 408 stdout.writeln(message); |
| 408 } | 409 } |
| 409 } | 410 } |
| 410 } | 411 } |
| OLD | NEW |