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.2.2 lib/webidl/parse_tree/implements_statement.rb
webidl-0.2.1 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.10 lib/webidl/parse_tree/implements_statement.rb
webidl-0.2.0 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.9 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.8 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.7 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.6 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.5 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.4 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.3 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.2 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.1 lib/webidl/parse_tree/implements_statement.rb
webidl-0.1.0 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.9 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.8 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.7 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.6 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.5 lib/webidl/parse_tree/implements_statement.rb
webidl-0.0.4 lib/webidl/parse_tree/implements_statement.rb