Term class final

A term: -id = value, only callable from other patterns via { -id }. Cannot be displayed directly to the user.

Inheritance

Constructors

Term({required Identifier id, required Pattern value, List<Attribute> attributes = const [], Comment? comment, Span? span})
Bundles the term's id, value, attributes, and attached comment.
const

Properties

attributes List<Attribute>
The term's attributes, in source order.
final
comment Comment?
The # comment directly above the term, when present.
final
hashCode int
The hash code for this object.
no setterinherited
id Identifier
The term id without the leading -.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span Span?
Source range this node covers; null when spans were off.
final
value Pattern
The value pattern (terms always have one).
final

Methods

clone() Term
Deep clone of this node.
override
equals(FluentNode other, {bool ignoreSpans = true}) bool
Structural equality.
override
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