Skip to content

Commit

Permalink
Merge eb31d16 into 0a83b0f
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins authored Mar 18, 2021
2 parents 0a83b0f + eb31d16 commit 0e81818
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/src/model/package_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/context/builder.dart';
import 'package:analyzer/src/dart/sdk/sdk.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/java_io.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source.dart';
Expand Down Expand Up @@ -118,12 +119,15 @@ class PubPackageBuilder implements PackageBuilder {

AnalysisContextCollection get contextCollection {
_contextCollection ??= AnalysisContextCollectionImpl(
includedPaths: [config.inputDir],
// TODO(jcollins-g): should we pass excluded directories here instead of
// handling it ourselves?
resourceProvider: resourceProvider,
sdkPath: config.sdkDir,
);
includedPaths: [config.inputDir],
// TODO(jcollins-g): should we pass excluded directories here instead of
// handling it ourselves?
resourceProvider: resourceProvider,
sdkPath: config.sdkDir,
updateAnalysisOptions: (AnalysisOptionsImpl options) => options
..hint = false
..lint = false);

return _contextCollection;
}

Expand Down

0 comments on commit 0e81818

Please sign in to comment.