ParseResult<T> class

Available Extensions

Constructors

ParseResult(CodeUnit<T> codeUnit, {ASTRoot? root, String? errorMessage, int? errorPosition, List<int>? errorLineAndColumn})

Properties

codeUnit CodeUnit<T>
The parsed code.
final
errorLine String?
The error line at codeUnit.
no setter
errorLineAndColumn List<int>?
The line and column of the error in the codeUnit source.
final
errorMessage String?
The error message if some parsing error occurred.
final
errorMessageExtended String
Returns the errorMessage with the error line information.
no setter
errorPosition int?
The position of the error in the codeUnit source.
final
hasError bool
Returns true if this parse result has errors.
no setter
hashCode int
The hash code for this object.
no setterinherited
isOK bool
Returns true if this parse result is OK.
no setter
root ASTRoot?
A parsed ASTRoot
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → T
The parsed codeUnit code.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited