class Savi::AST::Format::IndentState::Layer
- Savi::AST::Format::IndentState::Layer
- Reference
- Object
Defined in:
savi/ast/format/indent_state.crConstructors
Instance Method Summary
- #count_non_empty_layers
- #current_declare_indent : Int32
- #current_declare_indent=(current_declare_indent : Int32)
- #each_indent_pos(&)
- #empty?
- #enforce : Bool
- #enforce=(enforce : Bool)
- #enforces_indent? : Bool
- #node : AST::Node
- #node=(node : AST::Node)
- #observe_indent_pos(pos, modifier)
- #parent : Layer | Nil
- #parent=(parent : Layer | Nil)
- #pos_list : Array(Tuple(Source::Pos, Int32)) | Nil
- #pos_list=(pos_list : Array(Tuple(Source::Pos, Int32)) | Nil)
- #resolve_indent_level
Constructor Detail
def self.new(parent : Nil | Savi::AST::Format::IndentState::Layer, node : Savi::AST::Node, current_declare_indent : Int32, enforce : Bool = true)
#