Class: WebIDL::ParseTree::DictionaryMember

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

Instance Method Summary collapse

Instance Method Details

#build(parent) ⇒ Object



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

def build(parent)
  debugger unless default.empty? or default.respond_to?(:build)

  dm = Ast::DictionaryMember.new parent,
                                 type.build(parent),
                                 name.build,
                                 default.build unless default.empty?
end