CodebaseAnalyzer class
Constructors
- CodebaseAnalyzer({int? maxFiles})
- Creates a CodebaseAnalyzer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
countImportingFiles(
String projectPath, String packageName) → Future< int> -
Count how many project files import
packageName. Fast, no AST. -
findDartFiles(
String projectPath) → Future< List< String> > -
Find all Dart files under
projectPath, excluding generated files and build directories. -
findFilesImporting(
String projectPath, String packageName) → Future< List< String> > -
Fast import scan: returns files under
projectPaththat contain an import ofpackageName. -
getImportSummary(
String projectPath, String packageName) → Future< Map< String, List< >String> > -
Build a map of
import URI -> [file paths]for a givenpackageName. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchApiUsages(
{required String projectPath, required List< String> apis, String? packageFilter, bool resolveTypes = true}) → Future<List< ApiUsageResult> > -
Search for usages of specific
apiswithinprojectPath. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited