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