Enum rtlola_hir::hir::TransformationErr
source · pub enum TransformationErr {
Show 16 variants
InvalidIdentRef(Span, FunctionName),
InvalidRefExpr(Span, String),
ConstantWithoutType(Span),
NonNumericInLiteral(Span),
InvalidAc(Span, String),
InvalidRealtimeOffset(Span),
InvalidDuration(String, Span),
MissingExpr(Span),
MissingWidenArg(Span),
InvalidType(Type, String, Span),
UnknownFunction(Span),
InvalidLiteral(Span),
MissingArguments(Span),
MissingSpawn(Span),
MissingParameters(Span),
SpawnParameterMismatch(Span, usize, usize),
}
Expand description
A TransformationErr describes the kind off error raised during the Ast to Hir conversion.
Variants§
InvalidIdentRef(Span, FunctionName)
A function was found when a stream was expected.
InvalidRefExpr(Span, String)
No valid streamrefernce found while it was expected.
ConstantWithoutType(Span)
A declared constant had no type annotation.
NonNumericInLiteral(Span)
Could not parse numeric literal.
InvalidAc(Span, String)
Invalid activation condition.
InvalidRealtimeOffset(Span)
Offset expression of realtime offset could not be parsed as frequency.
InvalidDuration(String, Span)
Window duration could not be parsed into correct type.
MissingExpr(Span)
Missing expression cannot be transformed.
MissingWidenArg(Span)
Widen call expects a single type argument.
InvalidType(Type, String, Span)
Annotated type could not be matched.
UnknownFunction(Span)
Called function is unknown.
InvalidLiteral(Span)
Non duration literal with postfix found.
MissingArguments(Span)
An access to a parameterized output stream is missing its parameters
MissingSpawn(Span)
An output stream with parameters is missing a spawn expression
MissingParameters(Span)
An output stream with a spawn expression is missing parameters
SpawnParameterMismatch(Span, usize, usize)
The number of parameters of an output differs from the number of spawn expressions. Span of the output, number of parameters, number of spawn expressions
Trait Implementations§
source§impl Clone for TransformationErr
impl Clone for TransformationErr
source§fn clone(&self) -> TransformationErr
fn clone(&self) -> TransformationErr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more