| 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:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| 11 import 'package:analyzer/file_system/file_system.dart' show Folder; |
| 11 import 'package:analyzer/file_system/physical_file_system.dart'; | 12 import 'package:analyzer/file_system/physical_file_system.dart'; |
| 12 import 'package:analyzer/source/package_map_provider.dart'; | 13 import 'package:analyzer/source/package_map_provider.dart'; |
| 13 import 'package:analyzer/source/package_map_resolver.dart'; | 14 import 'package:analyzer/source/package_map_resolver.dart'; |
| 14 import 'package:analyzer/source/pub_package_map_provider.dart'; | 15 import 'package:analyzer/source/pub_package_map_provider.dart'; |
| 15 import 'package:analyzer/src/error_formatter.dart'; | 16 import 'package:analyzer/src/error_formatter.dart'; |
| 16 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem; | 17 import 'package:analyzer/src/generated/java_core.dart' show JavaSystem; |
| 17 import 'package:analyzer/src/generated/java_engine.dart'; | 18 import 'package:analyzer/src/generated/java_engine.dart'; |
| 18 | 19 |
| 19 import '../options.dart'; | 20 import '../options.dart'; |
| 20 import 'generated/constant.dart'; | 21 import 'generated/constant.dart'; |
| 21 import 'generated/element.dart'; | 22 import 'generated/element.dart'; |
| 22 import 'generated/engine.dart'; | 23 import 'generated/engine.dart'; |
| 23 import 'generated/error.dart'; | 24 import 'generated/error.dart'; |
| 24 import 'generated/java_io.dart'; | 25 import 'generated/java_io.dart'; |
| 25 import 'generated/sdk_io.dart'; | 26 import 'generated/sdk_io.dart'; |
| 26 import 'generated/source_io.dart'; | 27 import 'generated/source_io.dart'; |
| 27 import 'package:analyzer/file_system/file_system.dart'; | |
| 28 | 28 |
| 29 DirectoryBasedDartSdk sdk; | 29 DirectoryBasedDartSdk sdk; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * The maximum number of sources for which AST structures should be kept in the
cache. | 32 * The maximum number of sources for which AST structures should be kept in the
cache. |
| 33 */ | 33 */ |
| 34 const int _MAX_CACHE_SIZE = 512; | 34 const int _MAX_CACHE_SIZE = 512; |
| 35 | 35 |
| 36 /// Analyzes single library [File]. | 36 /// Analyzes single library [File]. |
| 37 class AnalyzerImpl { | 37 class AnalyzerImpl { |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 | 449 |
| 450 @override | 450 @override |
| 451 void logInformation2(String message, Object exception) { | 451 void logInformation2(String message, Object exception) { |
| 452 if (log) { | 452 if (log) { |
| 453 stdout.writeln(message); | 453 stdout.writeln(message); |
| 454 } | 454 } |
| 455 } | 455 } |
| 456 } | 456 } |
| OLD | NEW |