PackageApiAnalyzer constructor

PackageApiAnalyzer({
  1. required String packagePath,
  2. bool doAnalyzePlatformConstraints = true,
  3. bool doConsiderNonSrcAsEntryPoints = false,
})

constructor doAnalyzePlatformConstraints defines if the platform constraints of the package shall be analyzed. doConsiderNonSrcAsEntryPoints defines if all files that are not in the lib/src subdirectory are considered as entry points. Otherwise only files directly in the lib subdirectory are considered as entry points.

Implementation

PackageApiAnalyzer({
  required this.packagePath,
  this.doAnalyzePlatformConstraints = true,
  this.doConsiderNonSrcAsEntryPoints = false,
}) {
  if (doAnalyzePlatformConstraints) {
    semantics.add(PackageApiSemantics.containsPlatformConstraints);
  }
  _checkProjectPathValidity();
}