Sha256: 6743eb5ed7f3c49e8c2dfc348c8a4b5b6a0c8549e341f2904565ed1d36457f16

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

module Yoda
  module AST
    class EmptyVnode < Vnode
      def initialize(_el = nil, **kwargs)
        super(**kwargs)
      end

      # @return [Symbol]
      def type
        :empty
      end

      # @return [Array<Node>, nil]
      def children
        []
      end

      # @return [boolean]
      def empty?
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/ast/empty_vnode.rb
yoda-language-server-0.10.0 lib/yoda/ast/empty_vnode.rb
yoda-language-server-0.9.0 lib/yoda/ast/empty_vnode.rb
yoda-language-server-0.8.0 lib/yoda/ast/empty_vnode.rb