PassageMatch class final
A successfully parsed passage and its exact location in a source string.
Constructors
- PassageMatch({required Passage passage, required int start, required int end, required String sourceText, required ReferenceParseMetadata metadata})
-
const
Properties
- end → int
-
Exclusive UTF-16 offset in the original source string.
final
- endOffset → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- length → int
-
no setter
- metadata → ReferenceParseMetadata
-
Metadata produced by the passage parser.
final
- passage → Passage
-
The parsed passage.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceText → String
-
The exact substring at
[start, end)in the original source.final - start → int
-
Inclusive UTF-16 offset in the original source string.
final
- startOffset → int
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override