class Savi::AST::Format::IndentState::Layer

Defined in:

savi/ast/format/indent_state.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parent : Nil | Savi::AST::Format::IndentState::Layer, node : Savi::AST::Node, current_declare_indent : Int32, enforce : Bool = true) #

[View source]

Instance Method Detail

def count_non_empty_layers #

[View source]
def current_declare_indent : Int32 #

[View source]
def current_declare_indent=(current_declare_indent : Int32) #

[View source]
def each_indent_pos(&) #

[View source]
def empty? #

[View source]
def enforce : Bool #

[View source]
def enforce=(enforce : Bool) #

[View source]
def enforces_indent? : Bool #

[View source]
def node : AST::Node #

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

[View source]
def observe_indent_pos(pos, modifier) #

[View source]
def parent : Layer | Nil #

[View source]
def parent=(parent : Layer | Nil) #

[View source]
def pos_list : Array(Tuple(Source::Pos, Int32)) | Nil #

[View source]
def pos_list=(pos_list : Array(Tuple(Source::Pos, Int32)) | Nil) #

[View source]
def resolve_indent_level #

[View source]