PackageApiAnalyzer class
this class analyzes the public package API of a given package (packagePath)
Constructors
- PackageApiAnalyzer({required String packagePath, bool doAnalyzePlatformConstraints = true, 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.
Properties
- doAnalyzePlatformConstraints → bool
-
final
- doConsiderNonSrcAsEntryPoints → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- packagePath → String
-
path to the package to analyze
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
semantics
→ Set<
PackageApiSemantics> -
the semantics of package API models this analyzer produces.
this set defines what packages can be compared with each other and is the result of the combination of parameters this analyzer was constructed with.
final
Methods
-
analyze(
) → Future< PackageApi> - analyzes the configured package and returns a model of its public API
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited