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/declared_variables.dart'; | 10 import 'package:analyzer/context/declared_variables.dart'; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 /** | 71 /** |
72 * The options used by the context builder. | 72 * The options used by the context builder. |
73 */ | 73 */ |
74 final ContextBuilderOptions builderOptions; | 74 final ContextBuilderOptions builderOptions; |
75 | 75 |
76 /** | 76 /** |
77 * The resolver provider used to create a package: URI resolver, or `null` if | 77 * The resolver provider used to create a package: URI resolver, or `null` if |
78 * the normal (Package Specification DEP) lookup mechanism is to be used. | 78 * the normal (Package Specification DEP) lookup mechanism is to be used. |
79 */ | 79 */ |
80 @deprecated | |
81 ResolverProvider packageResolverProvider; | 80 ResolverProvider packageResolverProvider; |
82 | 81 |
83 /** | 82 /** |
84 * The resolver provider used to create a file: URI resolver, or `null` if | 83 * The resolver provider used to create a file: URI resolver, or `null` if |
85 * the normal file URI resolver is to be used. | 84 * the normal file URI resolver is to be used. |
86 */ | 85 */ |
87 @deprecated | |
88 ResolverProvider fileResolverProvider; | 86 ResolverProvider fileResolverProvider; |
89 | 87 |
90 /** | 88 /** |
91 * Initialize a newly created builder to be ready to build a context rooted in | 89 * Initialize a newly created builder to be ready to build a context rooted in |
92 * the directory with the given [rootDirectoryPath]. | 90 * the directory with the given [rootDirectoryPath]. |
93 */ | 91 */ |
94 ContextBuilder(this.resourceProvider, this.sdkManager, this.contentCache, | 92 ContextBuilder(this.resourceProvider, this.sdkManager, this.contentCache, |
95 {ContextBuilderOptions options}) | 93 {ContextBuilderOptions options}) |
96 : builderOptions = options ?? new ContextBuilderOptions(); | 94 : builderOptions = options ?? new ContextBuilderOptions(); |
97 | 95 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 String _readEmbedderYaml(Folder libDir) { | 613 String _readEmbedderYaml(Folder libDir) { |
616 File file = libDir.getChild(EMBEDDER_FILE_NAME); | 614 File file = libDir.getChild(EMBEDDER_FILE_NAME); |
617 try { | 615 try { |
618 return file.readAsStringSync(); | 616 return file.readAsStringSync(); |
619 } on FileSystemException { | 617 } on FileSystemException { |
620 // File can't be read. | 618 // File can't be read. |
621 return null; | 619 return null; |
622 } | 620 } |
623 } | 621 } |
624 } | 622 } |
OLD | NEW |