28 RenderSetState,
29 Invariant,
30▶ Todo,
31 Syntax,
32 UnsupportedSyntax,
· · ·
55 | ErrorCategory::UnsupportedSyntax => ErrorSeverity::Warning,
56
57▶ // Todo is Hint
58 ErrorCategory::Todo => ErrorSeverity::Hint,
59
· · ·
58▶ ErrorCategory::Todo => ErrorSeverity::Hint,
59
60 // Invariant and all others are Error severity
· · ·
170 }
171
172▶ /// Create a Todo diagnostic (matches TS `CompilerError.throwTodo()`).
173 pub fn todo(reason: impl Into<String>, loc: Option<SourceLocation>) -> Self {
174 let reason = reason.into();
· · ·
173▶ pub fn todo(reason: impl Into<String>, loc: Option<SourceLocation>) -> Self {
174 let reason = reason.into();
175 let mut diag = Self::new(ErrorCategory::Todo, reason.clone(), None);
+ 5 more matches in this file