Class: MissingRequiredSemanticDataError
errors.MissingRequiredSemanticDataError
Error that is thrown whenever a parent node attempts to access the semanticData of a child, but the child had an error during semantic analysis. This is to prevent the parent from using the child's data despite the child having an error.
This will unlike UndefinedSemanticsError not be thrown to indicate a fatal error/bug in the compiler, but is used to early abort the semantic analysis of a parent node. This therefore only affects the control flow of the compiler and not the correctness of the compiler.
Since
0.10.0
Hierarchy
-
↳
MissingRequiredSemanticDataError
Table of contents
Constructors
Constructors
constructor
• new MissingRequiredSemanticDataError(msg?
)
Parameters
Name | Type | Default value |
---|---|---|
msg |
string |
"" |
Overrides
KipperInternalError.constructor
Defined in
kipper/core/src/errors.ts:317