← API reference
CANONICAL TYPE REFERENCE

SourceDiagnostic

Location in authored source; one-based UTF-16 columns and exclusive end positions.

documentString!

Authored document containing the diagnostic, such as sourceXML or serverLua.

One-based line where the diagnostic begins.

One-based UTF-16 column where the diagnostic begins.

One-based line containing the exclusive end position.

One-based UTF-16 column of the exclusive end position.

Zero-based UTF-8 byte offset where the diagnostic begins.

Exclusive UTF-8 byte offset where the diagnostic ends.

elementIDString

XML element identifier associated with the diagnostic, when available.

attributeString

XML attribute associated with the diagnostic, when available.

inputPathString

Dot path of the input associated with the diagnostic, when available.

View exact SDL
"""
Location in authored source; one-based UTF-16 columns and exclusive end positions.
"""
type SourceDiagnostic {
  """
  Authored document containing the diagnostic, such as sourceXML or serverLua.
  """
  document: String!
  """One-based line where the diagnostic begins."""
  startLine: Int!
  """One-based UTF-16 column where the diagnostic begins."""
  startColumn: Int!
  """One-based line containing the exclusive end position."""
  endLine: Int!
  """One-based UTF-16 column of the exclusive end position."""
  endColumn: Int!
  """Zero-based UTF-8 byte offset where the diagnostic begins."""
  startOffset: Int!
  """Exclusive UTF-8 byte offset where the diagnostic ends."""
  endOffset: Int!
  """XML element identifier associated with the diagnostic, when available."""
  elementID: String
  """XML attribute associated with the diagnostic, when available."""
  attribute: String
  """Dot path of the input associated with the diagnostic, when available."""
  inputPath: String
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.