Method: RBI::RBSPrinter#visit_scope_body

Defined in:
lib/rbi/rbs_printer.rb

#visit_scope_body(node) ⇒ Object

: (Scope node) -> void



224
225
226
227
228
229
230
231
232
233
# File 'lib/rbi/rbs_printer.rb', line 224

def visit_scope_body(node)
  unless node.empty?
    indent
    visit_all(node.nodes)
    dedent
  end
  if !node.is_a?(Struct) || !node.empty?
    printl("end")
  end
end