Module: SyntaxTree::RBS::Entrypoints
- Included in:
- Bases::Any, Bases::Bool, Bases::Bottom, Bases::Class, Bases::Instance, Bases::Nil, Bases::Self, Bases::Top, Bases::Void, Function::Param, RBS::AST::Declarations::Base, RBS::AST::Members::Base, RBS::TypeName, RBS::Types::Alias, RBS::Types::ClassInstance, RBS::Types::ClassSingleton, RBS::Types::Interface, RBS::Types::Intersection, RBS::Types::Literal, RBS::Types::Optional, RBS::Types::Proc, RBS::Types::Record, RBS::Types::Tuple, RBS::Types::Union, RBS::Types::Variable, Root
- Defined in:
- lib/syntax_tree/rbs/entrypoints.rb
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 |