Sha256: f24e0a285e1dc6c6d42b89f1a22992e35c99b39d732be55a472b2d9c7541dbca

Contents?: true

Size: 448 Bytes

Versions: 23

Compression:

Stored size: 448 Bytes

Contents

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

      def build(parent)
        options = {
          :readonly  => readonly.any?,
          :getraises => (getraises.build unless getraises.empty?),
          :setraises => (setraises.build unless setraises.empty?)
        }

        Ast::Attribute.new parent, type.build(parent), name.build, options
      end

    end # Attribute
  end # ParseTree
end # WebIDL

Version data entries

23 entries across 23 versions & 1 rubygems

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