class Savi::AST::FieldWrite

Overview

A FieldWrite node indicates a value being written to a particular field.

This is an internal AST type which has no corresponding source code syntax, because field writes only happen inside of generated property getters.

Defined in:

savi/ast.cr

Constructors

Instance Method Summary

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

Constructor Detail

def self.new(value : String, rhs : Term) #

[View source]

Instance Method Detail

def children_accept(ctx : Compiler::Context, visitor : Visitor) #

[View source]
def children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor) #

[View source]
def name #

[View source]
def rhs : Savi::AST::Node #

[View source]
def rhs=(rhs : Savi::AST::Node) #

[View source]
def to_a : Array(A) #

[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]