class Savi::AST::FieldDisplace
- Savi::AST::FieldDisplace
- Savi::AST::Node
- Reference
- Object
Overview
A FieldDisplace node indicates a new value displacing the old value that was within a particular field, returning the old value of the field.
This is an internal AST type which has no corresponding source code syntax, because field writes only happen inside of generated property displacers.
Defined in:
savi/ast.crConstructors
Instance Method Summary
- #children_accept(ctx : Compiler::Context, visitor : Visitor)
- #children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor)
- #name
- #rhs : Savi::AST::Node
- #rhs=(rhs : Savi::AST::Node)
- #to_a : Array(A)
- #value : String
- #value=(value : String)
Instance methods inherited from class Savi::AST::Node
accept(ctx : Compiler::Context, visitor : Visitor)accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor) accept, annotations : Array(Annotation) | Nil annotations, annotations=(annotations : Array(Annotation) | Nil) annotations=, children_accept(ctx : Compiler::Context, visitor : Visitor)
children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor) children_accept, from(other : Node) from, pos pos, pos? : Savi::Source::Pos? pos?, span_pos(source) span_pos, with_pos(pos : Source::Pos) with_pos