Skip to content

typeErrors

typeErrors provides checker-specific diagnostic formatting.

new typeErrors(errs): typeErrors

Errors

typeErrors

readonly errs: Errors

fieldTypeMismatch(id, location, name, field, value): void

fieldTypeMismatch reports an incompatible message field initializer type.

number

Location

string

Type

Type

void


incompatibleType(id, location, expr, previous, next): void

incompatibleType reports conflicting type assignments for the same expression id.

number

Location

Expr

Type

Type

void


noMatchingOverload(id, location, name, args, isInstance): void

noMatchingOverload reports a failed overload resolution.

number

Location

string

Type[]

boolean

void


notAComprehensionRange(id, location, type): void

notAComprehensionRange reports an invalid comprehension range type.

number

Location

Type

void


notAMessageType(id, location, typeName): void

notAMessageType reports a resolved type that cannot be instantiated as a message literal.

number

Location

string

void


notAnOptionalFieldSelection(id, location, field): void

notAnOptionalFieldSelection reports an invalid optional-select field operand.

number

Location

Expr

void


notAnOptionalFieldSelectionCall(id, location, err): void

notAnOptionalFieldSelectionCall reports an invalid optional-select helper invocation.

number

Location

string

void


notAType(id, location, typeName): void

notAType reports a resolved identifier that does not refer to a CEL type.

number

Location

string

void


referenceRedefinition(id, location, expr, previous, next): void

referenceRedefinition reports conflicting reference metadata for the same expression id.

number

Location

Expr

string

string[]

string

string[]

void


typeDoesNotSupportFieldSelection(id, location, type): void

typeDoesNotSupportFieldSelection reports an unsupported field selection target.

number

Location

Type

void


typeMismatch(id, location, expected, actual): void

typeMismatch reports a mismatch between expected and actual types.

number

Location

Type

Type

void


undeclaredReference(id, location, container, name): void

undeclaredReference reports an unknown identifier.

number

Location

string

string

void


undefinedField(id, location, field): void

undefinedField reports an unknown message field name.

number

Location

string

void


unexpectedASTType(id, location, kind, typeName): void

unexpectedASTType reports an invalid AST shape for the current checker step.

number

Location

string

string

void


unexpectedFailedResolution(id, location, typeName): void

unexpectedFailedResolution reports an impossible provider resolution failure.

number

Location

string

void