Sha256: 9b7d2ba33c333be14cd6ca216dff2041f22e0ba2ed27a725bb2f86eb22538ba9

Contents?: true

Size: 720 Bytes

Versions: 23

Compression:

Stored size: 720 Bytes

Contents

module WebIDL
  module ParseTree
    class ImplementsStatement < Treetop::Runtime::SyntaxNode

      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

    end # ImplementsStatement
  end # ParseTree
end # WebIDL

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
webidl-0.0.3 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.2 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.1 lib/webidl/parse_tree/implements_statement.rb