EdgeAppSourceDiagnostic
A single type-check diagnostic on a edgeApp script
Fields
Which kind of script this diagnostic refers to
Possible values (3)
HANDLERA handler script (entry under handlers[])
LIBRARYA reusable library script (entry under libraries[])
ON_MESSAGEThe onMessage entry script (local.edgeApp.invoke target)
Handler name, library name, or 'onMessage' depending on scriptKind
1-based line number in the script source
1-based column number
ERROR or WARNING
Possible values (2)
ERRORType error — script is not type-safe
WARNINGLint warning — non-fatal
Diagnostic message from the Lua type checker
Checker error code, when available
Referenced by (1)
Exact type SDL
"""A single type-check diagnostic on a edgeApp script"""
type EdgeAppSourceDiagnostic {
"""Which kind of script this diagnostic refers to"""
scriptKind: EdgeAppSourceScriptKind!
"""Handler name, library name, or 'onMessage' depending on scriptKind"""
scriptName: String!
"""1-based line number in the script source"""
line: Int!
"""1-based column number"""
column: Int!
"""ERROR or WARNING"""
severity: EdgeAppSourceDiagnosticSeverity!
"""Diagnostic message from the Lua type checker"""
message: String!
"""Checker error code, when available"""
code: String
}