Class: WebIDL::ParseTree::Dictionary
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- WebIDL::ParseTree::Dictionary
- Defined in:
- lib/webidl/parse_tree/dictionary.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#add_inheritance(dict) ⇒ Object
17 18 19 20 21 |
# File 'lib/webidl/parse_tree/dictionary.rb', line 17 def add_inheritance(dict) if inherits.any? dict.inherits = inherits.build(dict) end end |
#build(parent) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/webidl/parse_tree/dictionary.rb', line 5 def build(parent) dict = Ast::Dictionary.new(parent, name.text_value) if members.any? members.build(dict) end add_inheritance(dict) dict end |