| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.src.context.context_builder; | 5 library analyzer.src.context.context_builder; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:core'; | 8 import 'dart:core'; |
| 9 | 9 |
| 10 import 'package:analyzer/context/context_root.dart'; | 10 import 'package:analyzer/context/context_root.dart'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 import 'package:analyzer/src/generated/gn.dart'; | 27 import 'package:analyzer/src/generated/gn.dart'; |
| 28 import 'package:analyzer/src/generated/sdk.dart'; | 28 import 'package:analyzer/src/generated/sdk.dart'; |
| 29 import 'package:analyzer/src/generated/source.dart'; | 29 import 'package:analyzer/src/generated/source.dart'; |
| 30 import 'package:analyzer/src/generated/workspace.dart'; | 30 import 'package:analyzer/src/generated/workspace.dart'; |
| 31 import 'package:analyzer/src/lint/registry.dart'; | 31 import 'package:analyzer/src/lint/registry.dart'; |
| 32 import 'package:analyzer/src/services/lint.dart'; | 32 import 'package:analyzer/src/services/lint.dart'; |
| 33 import 'package:analyzer/src/summary/summary_sdk.dart'; | 33 import 'package:analyzer/src/summary/summary_sdk.dart'; |
| 34 import 'package:analyzer/src/task/options.dart'; | 34 import 'package:analyzer/src/task/options.dart'; |
| 35 import 'package:args/args.dart'; | 35 import 'package:args/args.dart'; |
| 36 import 'package:front_end/src/base/performace_logger.dart'; | 36 import 'package:front_end/src/base/performace_logger.dart'; |
| 37 import 'package:front_end/src/incremental/byte_store.dart'; | 37 import 'package:front_end/src/byte_store/byte_store.dart'; |
| 38 import 'package:package_config/packages.dart'; | 38 import 'package:package_config/packages.dart'; |
| 39 import 'package:package_config/packages_file.dart'; | 39 import 'package:package_config/packages_file.dart'; |
| 40 import 'package:package_config/src/packages_impl.dart'; | 40 import 'package:package_config/src/packages_impl.dart'; |
| 41 import 'package:path/src/context.dart'; | 41 import 'package:path/src/context.dart'; |
| 42 import 'package:yaml/yaml.dart'; | 42 import 'package:yaml/yaml.dart'; |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * A utility class used to build an analysis context for a given directory. | 45 * A utility class used to build an analysis context for a given directory. |
| 46 * | 46 * |
| 47 * The construction of analysis contexts is as follows: | 47 * The construction of analysis contexts is as follows: |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 throw new ArgumentError('not absolute: $path'); | 843 throw new ArgumentError('not absolute: $path'); |
| 844 } | 844 } |
| 845 path = context.normalize(path); | 845 path = context.normalize(path); |
| 846 Resource resource = provider.getResource(path); | 846 Resource resource = provider.getResource(path); |
| 847 if (resource is File) { | 847 if (resource is File) { |
| 848 path = resource.parent.path; | 848 path = resource.parent.path; |
| 849 } | 849 } |
| 850 return new _BasicWorkspace._(provider, path, builder); | 850 return new _BasicWorkspace._(provider, path, builder); |
| 851 } | 851 } |
| 852 } | 852 } |
| OLD | NEW |