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

Side by Side Diff: pkg/analyzer/lib/src/context/builder.dart

Issue 2990323002: Move byte_store.dart and file_byte_store.dart to their own subdirectory. (Closed)
Patch Set: Created 3 years, 4 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698