DiagnosticRelatedInformation

class DiagnosticRelatedInformation

Represents a related message and source code location for a diagnostic.

This should be used to point to code locations that cause or related to a diagnostics, e.g when duplicating a symbol in a scope.

Members defined in DiagnosticRelatedInformation (5 members)

depth

RW

Nesting level of the related information, may be used to indent the printed message

message

RW

The diagnostic’s message.

segment

RW

The segment at which the message applies, offsets are in UTF-8 characters

uri

RW

URI of the document this information applies to

__init__

Attributes

property depth: int

Nesting level of the related information, may be used to indent the printed message

property message: str

The diagnostic’s message.

property segment: syside.DocumentSegment

The segment at which the message applies, offsets are in UTF-8 characters

property uri: syside.Url

URI of the document this information applies to

Methods

__init__(uri: syside.Url, segment: syside.DocumentSegment, message: str, depth: int = 0) None
Used in