Sha256: 6214d839747c0393cf38acaf6cc748c3b4ea0e46345e3647bc855d07da80404a

Contents?: true

Size: 297 Bytes

Versions: 27

Compression:

Stored size: 297 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module RubyLsp
  class RubyDocument < Document
    sig { override.returns(Prism::ParseResult) }
    def parse
      return @parse_result unless @needs_parsing

      @needs_parsing = false
      @parse_result = Prism.parse(@source)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ruby-lsp-0.13.4 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.13.3 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.13.2 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.13.1 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.13.0 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.12.5 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.12.4 lib/ruby_lsp/ruby_document.rb