Parser class
Wraps the analyzer package to produce ParsedFiles.
Files that fail to parse (syntax errors, encoding issues) are skipped rather than crashing the whole scan.
Constructors
- Parser()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
File file) → Future< ParsedFile?> -
Parses
fileand returns its AST, ornullif parsing fails. -
parseAll(
List< File> files) → Future<List< ParsedFile> > - Parses a list of files in parallel. Returns only successfully parsed files; failures are silently dropped.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited