Sha256: edbbdeee7728de11a9aefd3ba286e5744dc4bcce358ca90d9ba5823cc018ddf9

Contents?: true

Size: 412 Bytes

Versions: 12

Compression:

Stored size: 412 Bytes

Contents

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

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

        arg.extended_attributes = eal.build unless eal.empty?

        arg
      end

    end # Argument
  end # ParseTree
end # WebIDL

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
webidl-0.1.2 lib/webidl/parse_tree/argument.rb
webidl-0.1.1 lib/webidl/parse_tree/argument.rb
webidl-0.1.0 lib/webidl/parse_tree/argument.rb
webidl-0.0.9 lib/webidl/parse_tree/argument.rb
webidl-0.0.8 lib/webidl/parse_tree/argument.rb
webidl-0.0.7 lib/webidl/parse_tree/argument.rb
webidl-0.0.6 lib/webidl/parse_tree/argument.rb
webidl-0.0.5 lib/webidl/parse_tree/argument.rb
webidl-0.0.4 lib/webidl/parse_tree/argument.rb
webidl-0.0.3 lib/webidl/parse_tree/argument.rb
webidl-0.0.2 lib/webidl/parse_tree/argument.rb
webidl-0.0.1 lib/webidl/parse_tree/argument.rb