File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
import 'dart:async' ;
6
6
7
7
import 'package:analyzer/dart/analysis/analysis_context_collection.dart' ;
8
+ import 'package:analyzer/dart/analysis/context_root.dart' ;
8
9
import 'package:analyzer/dart/analysis/results.dart' ;
9
10
import 'package:analyzer/dart/ast/ast.dart' ;
10
11
import 'package:analyzer/dart/element/element.dart' ;
@@ -140,9 +141,14 @@ class PubPackageBuilder implements PackageBuilder {
140
141
// handling it ourselves?
141
142
resourceProvider: resourceProvider,
142
143
sdkPath: config.sdkDir,
143
- updateAnalysisOptions: (AnalysisOptionsImpl options) => options
144
- ..hint = false
145
- ..lint = false ,
144
+ updateAnalysisOptions2: ({
145
+ required AnalysisOptionsImpl analysisOptions,
146
+ required ContextRoot contextRoot,
147
+ required DartSdk sdk,
148
+ }) =>
149
+ analysisOptions
150
+ ..hint = false
151
+ ..lint = false ,
146
152
);
147
153
148
154
/// Returns an Iterable with the SDK files we should parse.
You can’t perform that action at this time.
0 commit comments