← All types
Ob Object

LuaScriptDiagnostic

A single type-check diagnostic.

Fields

line

Int!Non-null

1-based line number in the script source.

column

Int!Non-null

1-based UTF-16 editor column.

endLine

IntNullable

Exclusive diagnostic end line.

endColumn

IntNullable

Exclusive diagnostic end UTF-16 column.

ERROR or WARNING.

Possible values (2)
ERROR

Type error — script is not type-safe.

WARNING

Lint warning — non-fatal.

message

String!Non-null

Diagnostic message from the Lua type checker.

code

StringNullable

Checker error code, when available.

Referenced by (1)
Exact type SDL
"""A single type-check diagnostic."""
type LuaScriptDiagnostic {
  """1-based line number in the script source."""
  line: Int!
  """1-based UTF-16 editor column."""
  column: Int!
  """Exclusive diagnostic end line."""
  endLine: Int
  """Exclusive diagnostic end UTF-16 column."""
  endColumn: Int
  """ERROR or WARNING."""
  severity: LuaScriptDiagnosticSeverity!
  """Diagnostic message from the Lua type checker."""
  message: String!
  """Checker error code, when available."""
  code: String
}