| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/context/declared_variables.dart'; | 5 import 'package:analyzer/context/declared_variables.dart'; |
| 6 import 'package:analyzer/dart/ast/ast.dart'; | 6 import 'package:analyzer/dart/ast/ast.dart'; |
| 7 import 'package:analyzer/dart/element/element.dart' | 7 import 'package:analyzer/dart/element/element.dart' |
| 8 show CompilationUnitElement, LibraryElement; | 8 show CompilationUnitElement, LibraryElement; |
| 9 import 'package:analyzer/error/error.dart'; | 9 import 'package:analyzer/error/error.dart'; |
| 10 import 'package:analyzer/src/context/context.dart'; | 10 import 'package:analyzer/src/context/context.dart'; |
| 11 import 'package:analyzer/src/dart/analysis/driver.dart'; | 11 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 12 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 12 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
| 13 import 'package:analyzer/src/generated/engine.dart' | 13 import 'package:analyzer/src/generated/engine.dart' |
| 14 show AnalysisContext, AnalysisEngine, AnalysisOptions; | 14 show AnalysisContext, AnalysisEngine, AnalysisOptions; |
| 15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 16 import 'package:analyzer/src/summary/format.dart'; | 16 import 'package:analyzer/src/summary/format.dart'; |
| 17 import 'package:analyzer/src/summary/idl.dart'; | 17 import 'package:analyzer/src/summary/idl.dart'; |
| 18 import 'package:analyzer/src/summary/link.dart'; | 18 import 'package:analyzer/src/summary/link.dart'; |
| 19 import 'package:analyzer/src/summary/package_bundle_reader.dart'; | 19 import 'package:analyzer/src/summary/package_bundle_reader.dart'; |
| 20 import 'package:analyzer/src/task/dart.dart' show COMPILATION_UNIT_ELEMENT; | 20 import 'package:analyzer/src/task/dart.dart' show COMPILATION_UNIT_ELEMENT; |
| 21 import 'package:analyzer/task/dart.dart' show LibrarySpecificUnit; | 21 import 'package:analyzer/task/dart.dart' show LibrarySpecificUnit; |
| 22 import 'package:front_end/src/base/performace_logger.dart'; | 22 import 'package:front_end/src/base/performace_logger.dart'; |
| 23 import 'package:front_end/src/incremental/byte_store.dart'; | 23 import 'package:front_end/src/byte_store/byte_store.dart'; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Context information necessary to analyze one or more libraries within an | 26 * Context information necessary to analyze one or more libraries within an |
| 27 * [AnalysisDriver]. | 27 * [AnalysisDriver]. |
| 28 * | 28 * |
| 29 * Currently this is implemented as a wrapper around [AnalysisContext]. | 29 * Currently this is implemented as a wrapper around [AnalysisContext]. |
| 30 * TODO(paulberry): make a front end API that this can make use of instead. | 30 * TODO(paulberry): make a front end API that this can make use of instead. |
| 31 */ | 31 */ |
| 32 class LibraryContext { | 32 class LibraryContext { |
| 33 final SummaryDataStore store; | 33 final SummaryDataStore store; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 @override | 261 @override |
| 262 String setContents(Source source, String contents) { | 262 String setContents(Source source, String contents) { |
| 263 throw new UnimplementedError(); | 263 throw new UnimplementedError(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 FileState _getFileForSource(Source source) { | 266 FileState _getFileForSource(Source source) { |
| 267 String path = source.fullName; | 267 String path = source.fullName; |
| 268 return fsState.getFileForPath(path); | 268 return fsState.getFileForPath(path); |
| 269 } | 269 } |
| 270 } | 270 } |
| OLD | NEW |