| Package | Description |
|---|---|
| gudusoft.gsqlparser.ir.semantic |
| Modifier and Type | Method and Description |
|---|---|
DiagnosticCode |
Diagnostic.getCode() |
static DiagnosticCode |
DiagnosticCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiagnosticCode[] |
DiagnosticCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Diagnostic |
Diagnostic.error(DiagnosticCode code,
String message)
Construct an
ERROR-severity diagnostic
with no span anchor. |
static Diagnostic |
Diagnostic.error(DiagnosticCode code,
String message,
TParseTreeNode anchor)
Construct an
ERROR-severity diagnostic
whose span is derived from anchor via
SourceSpan.of(TParseTreeNode). |
static Diagnostic |
Diagnostic.errorWithSpan(DiagnosticCode code,
String message,
SourceSpan span)
Construct an
ERROR-severity diagnostic
with an explicit (already-computed) source span. |
static Diagnostic |
Diagnostic.warn(DiagnosticCode code,
String message)
Slice 77 — construct a
WARN-severity
diagnostic with no span anchor. |
static Diagnostic |
Diagnostic.warn(DiagnosticCode code,
String message,
TParseTreeNode anchor)
Slice 77 — construct a
WARN-severity
diagnostic whose span is derived from anchor. |