| Package | Description |
|---|---|
| gudusoft.gsqlparser.ir.semantic |
Semantic analysis results, diagnostics, and supporting implementation APIs.
|
| 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.Builder |
Diagnostic.builder(DiagnosticCode code,
Severity severity,
String message)
Begin constructing a diagnostic.
|
static DiagnosticCategory |
DiagnosticDescriptorCatalog.categoryOf(DiagnosticCode code)
Return the compiler-layer ownership category for
code. |
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. |
static Diagnostic |
Diagnostic.warnWithSpan(DiagnosticCode code,
String message,
SourceSpan span)
Construct a
WARN-severity diagnostic with an
explicit (already-computed) source span — the WARN counterpart of
Diagnostic.errorWithSpan(gudusoft.gsqlparser.ir.semantic.DiagnosticCode, java.lang.String, gudusoft.gsqlparser.ir.semantic.SourceSpan). |