Sha256: d55db56f7752c6559f5f42bd358e55a02485410c17cb85b42ab461226de350ed

Contents?: true

Size: 804 Bytes

Versions: 4

Compression:

Stored size: 804 Bytes

Contents

module Yoda
  module AST
    class ConstantBaseNode < Node
      # @return [Vnode, nil]
      def base
        nil
      end

      # @return [true, false]
      def absolute?
        true
      end

      # @return [true, false]
      def constant_base?
        true
      end

      def constant?
        true
      end

      # @param location [Location]
      # @return [true, false]
      def just_after_separator?(location)
        return false unless node.location.double_colon
        location == Location.of_ast_location(node.location.double_colon.end)
      end

      # @return [Model::Path]
      def path
        Model::Path.new(path_name)
      end

      # @param base [String, Symbol, nil]
      # @return [String]
      def path_name(base = nil)
        '::'
      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/constant_base_node.rb
yoda-language-server-0.10.0 lib/yoda/ast/constant_base_node.rb
yoda-language-server-0.9.0 lib/yoda/ast/constant_base_node.rb
yoda-language-server-0.8.0 lib/yoda/ast/constant_base_node.rb