Class: Antlr4::Runtime::Parser::TrimToSizeListener

Inherits:
Antlr4::Runtime::ParseTreeListener show all
Includes:
Singleton
Defined in:
lib/antlr4/runtime/parser.rb

Instance Method Summary collapse

Instance Method Details

#enter_every_rule(_ctx) ⇒ Object


29
30
# File 'lib/antlr4/runtime/parser.rb', line 29

def enter_every_rule(_ctx)
end

#exit_every_rule(ctx) ⇒ Object


38
39
40
# File 'lib/antlr4/runtime/parser.rb', line 38

def exit_every_rule(ctx)
  ctx.children.trimToSize if ctx.children.is_a? ArrayList
end

#visit_error_node(_node) ⇒ Object


35
36
# File 'lib/antlr4/runtime/parser.rb', line 35

def visit_error_node(_node)
end

#visit_terminal(_node, _ctx) ⇒ Object


32
33
# File 'lib/antlr4/runtime/parser.rb', line 32

def visit_terminal(_node, _ctx)
end