Class: WebIDL::ParseTree::ImplementsStatement
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- WebIDL::ParseTree::ImplementsStatement
- Defined in:
- lib/webidl/parse_tree/implements_statement.rb
Instance Method Summary collapse
Instance Method Details
#build(parent) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/webidl/parse_tree/implements_statement.rb', line 5 def build(parent) # not sure how this should be handled # currently keep a global list of interfaces, find the implementor and put the implementee in its 'implements' list # perhaps this is too early to do the resolving? implor_name = implementor.build(parent).qualified_name implee_name = implementee.build(parent).qualified_name # implor = Ast::Interface.list[implor_name] # implee = Ast::Interface.list[implee_name] Ast::ImplementsStatement.new(parent, implor_name, implee_name) end |