Class: TreeSitterLanguagePack::Diagnostic

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiagnostic

Returns a new instance of Diagnostic.

Parameters:



145
# File 'sig/types.rbs', line 145

def initialize: (?message: String, ?severity: DiagnosticSeverity, ?span: Span) -> void

Instance Attribute Details

#messageString?

Returns the value of attribute message.

Returns:

  • (String, nil)


141
142
143
# File 'sig/types.rbs', line 141

def message
  @message
end

#severityDiagnosticSeverity?

Returns the value of attribute severity.

Returns:



142
143
144
# File 'sig/types.rbs', line 142

def severity
  @severity
end

#spanSpan?

Returns the value of attribute span.

Returns:



143
144
145
# File 'sig/types.rbs', line 143

def span
  @span
end