Sha256: 2504b6b278f080489f560f3e4595066aaefb5528ce83fa2b99e026b71d77dd12

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

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

      def build(parent)
        intf = Ast::Interface.new(parent, name.text_value)

        unless members.empty?
          members.build(intf)
        end

        unless inherits.empty?
          intf.inherits = inherits.build(parent)
        end

        intf
      end

    end # Interface

    class PartialInterface < Interface
      def partial?
        true
      end
    end
  end # ParseTree
end # WebIDL

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webidl-0.1.3 lib/webidl/parse_tree/interface.rb