Module: SyntaxTree::RBS::Entrypoints

Overview

These are the methods that are going to be defined on each node of the AST. They each will create a visitor and enter into the visitor’s walking algorithm.

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



9
10
11
# File 'lib/syntax_tree/rbs/entrypoints.rb', line 9

def format(q)
  accept(Format.new(q))
end

#pretty_print(q) ⇒ Object



13
14
15
# File 'lib/syntax_tree/rbs/entrypoints.rb', line 13

def pretty_print(q)
  accept(PrettyPrint.new(q))
end