Sha256: ff5259025b9c58d86c40663dcd37492dfa3004687e5a2aab58995a28e83b0ef5

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

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

      def apply(type)
        if respond_to?(:array) && array.any?
          type.array = true
        end

        if respond_to?(:null) && null.any?
          type.nullable = true
        end

        if suffix.any?
          suffix.apply(type)
        end
      end

    end # TypeSuffix
  end # ParseTree
end # WebIDL

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webidl-0.2.2 lib/webidl/parse_tree/type_suffix.rb
webidl-0.2.1 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.10 lib/webidl/parse_tree/type_suffix.rb
webidl-0.2.0 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.9 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.8 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.7 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.6 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.5 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.4 lib/webidl/parse_tree/type_suffix.rb
webidl-0.1.3 lib/webidl/parse_tree/type_suffix.rb