Skip to main content

Module dialect

Module dialect 

Source
Expand description

Dialect-mismatch diagnostics for the parser.

When the grammar recognizes a token that maps to an OracleFeature that is not available on the run’s OracleTargetVersion, the parser emits a Diagnostic with the stable code UNSUPPORTED_DIALECT_FEATURE_CODE, carrying an UnknownReason::UnsupportedDialectFeature tag and a version-aware remediation hint.

Per plan.md R13 (no uncertainty silently dropped), every dialect-mismatch is a typed blind spot, never a panic.

Constants§

UNSUPPORTED_DIALECT_FEATURE_CODE
Stable diagnostic code emitted whenever the parser encounters an OracleFeature token outside its target version.

Functions§

earliest_supporting_version
Returns the earliest Oracle version that supports feature.
feature_label
Human-friendly label for an OracleFeature, used in diagnostic messages.
unsupported_dialect_feature_diagnostic
Build a Diagnostic reporting that feature is not available on the parse_options.oracle_version target.
unsupported_dialect_feature_remediation
Build a version-aware remediation hint for feature against target.