flux_macros/diagnostics/
mod.rs

1#![allow(dead_code)]
2#![allow(clippy::all)]
3
4mod diagnostic;
5mod diagnostic_builder;
6mod error;
7mod fluent;
8mod subdiagnostic;
9mod utils;
10
11use diagnostic::DiagnosticDerive;
12pub(crate) use fluent::fluent_messages;
13use proc_macro2::TokenStream;
14use subdiagnostic::SubdiagnosticDerive;
15use synstructure::Structure;
16
17pub fn diagnostic_derive(s: Structure<'_>) -> TokenStream {
18    DiagnosticDerive::new(s).into_tokens()
19}
20
21pub fn subdiagnostic_derive(s: Structure<'_>) -> TokenStream {
22    SubdiagnosticDerive::new().into_tokens(s)
23}