Sha256: af0573701cc4ded4070b959baf541a088ef2fb11ef465919dafeb3e3034f7363

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

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

      def build(parent)
        xattrs = eal.build(parent) unless eal.empty?

        arg = Ast::Argument.new(
          id.build,
          type.build(parent),
          :optional            => optional.any?,
          :variadic            => variadic.any?,
          :extended_attributes => xattrs
        )

        arg
      end

    end # Argument
  end # ParseTree
end # WebIDL

Version data entries

1 entries across 1 versions & 1 rubygems

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