Sha256: 14225b7d1ddf962140b5c7a061169c53ff485e9d8d6a63b6e29c7ff40e8811d8

Contents?: true

Size: 390 Bytes

Versions: 12

Compression:

Stored size: 390 Bytes

Contents

module Yoda
  module Parsing
    module Scopes
      # Represents root namespace.
      class Root < Base
        def body_nodes
          [node.children.last]
        end

        def body_node
          body_nodes.first
        end

        def kind
          :root
        end

        # @return [String]
        def scope_name
          'Object'
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.10.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.9.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.8.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.7.2 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.7.1 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.7.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.6.2 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.6.1 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.6.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.5.0 lib/yoda/parsing/scopes/root.rb
yoda-language-server-0.4.0 lib/yoda/parsing/scopes/root.rb