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

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

Issue 2508973005: Un-deprecate some deprecated code and fix a couple of hints (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/declared_variables.dart'; 10 import 'package:analyzer/context/declared_variables.dart';
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698