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.17.4 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.17.3 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.17.2 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.17.1 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.17.0 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.6 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.5 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.4 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.3 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.2 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.1 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.16.0 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.15.0 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.6 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.5 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.4 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.3 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.2 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.1 lib/ruby_lsp/ruby_document.rb
ruby-lsp-0.14.0 lib/ruby_lsp/ruby_document.rb