ParsedFile class

Holds the parsed AST of a single Dart source file plus the raw text.

Passed to every rule. Rules walk unit using AST visitors.

Constructors

ParsedFile({required File source, required CompilationUnit unit, required String content})

Properties

content String
final
hashCode int
The hash code for this object.
no setterinherited
lineCount int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source File
final
unit → CompilationUnit
final

Methods

lineAt(int lineNumber) String?
Returns the source line at lineNumber (1-based), trimmed.
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