Sha256: 7937a0f19a447fd2f4f63b813f1d9695f89c64519f642b6b815adb5fe380c9ad

Contents?: true

Size: 1.79 KB

Versions: 3

Compression:

Stored size: 1.79 KB

Contents

require_relative 'source'
require_relative 'checksum'

class DAP::Source < DAP::Base
  # The short name of the source. Every source returned from the debug adapter has a name.
  # When sending a source to the debug adapter this name is optional.
  property :name, required: false

  # The path of the source to be shown in the UI.
  # It is only used to locate and load the content of the source if no sourceReference is specified (or its value is 0).
  property :path, required: false

  # If sourceReference > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).
  # A sourceReference is only valid for a session, so it must not be used to persist a source.
  # The value should be less than or equal to 2147483647 (2^31 - 1).
  property :sourceReference, required: false

  # An optional hint for how to present the source in the UI.
  # A value of 'deemphasize' can be used to indicate that the source is not available or that it is skipped on stepping.
  # Values: 'normal', 'emphasize', 'deemphasize', etc.
  property :presentationHint, required: false # 'normal' | 'emphasize' | 'deemphasize'

  # The (optional) origin of this source: possible values 'internal module', 'inlined content from source map', etc.
  property :origin, required: false

  # An optional list of sources that are related to this source. These may be the source that generated this source.
  property :sources, required: false, as: many(DAP::Source)

  # Optional data that a debug adapter might want to loop through the client.
  # The client should leave the data intact and persist it across sessions. The client should not interpret the data.
  property :adapterData, required: false

  # The checksums associated with this file.
  property :checksums, required: false, as: many(DAP::Checksum)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-dap-0.1.2 lib/dap/source.rb
ruby-dap-0.1.1 lib/dap/source.rb
ruby-dap-0.1.0 lib/dap/source.rb