PackageApiAnalyzer constructor
PackageApiAnalyzer({})
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();
}