Class: WebIDL::ParseTree::Callback

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/webidl/parse_tree/callback.rb

Instance Method Summary collapse

Instance Method Details

#build(parent) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/webidl/parse_tree/callback.rb', line 5

def build(parent)
  Ast::Callback.new(
    name.text_value, 
    return_type.build(parent), 
    args.empty? ? [] : args.build(parent)
  )
end