Placeable class final

A { ... } placeable. Wraps an Expression and appears in two positions in the AST:

  • As an element inside a Pattern (the common case — that's how placeables interleave with pattern text).
  • As an InlineExpression inside ANOTHER placeable's expression slot — i.e. nested placeables { {"x"} }.

The dual role is required by the Fluent Syntax 1.0 spec. It only works because every AST file is part of one Dart library, so the sealed PatternElement and sealed InlineExpression boundaries can both legally cover this class.

Inheritance
Implemented types

Constructors

Placeable(Expression expression, {Span? span})
Wraps the placeable's expression.
const

Properties

expression Expression
The expression inside the { … }.
final
hashCode int
The hash code for this object.
no setterinherited
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

Methods

clone() Placeable
Deep-copies 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