Yog Script (.ys, .yns) analyzed: its lexer, parser and syntax tree, names resolved, the class index model — what the build and the editors read a source with.
//! A method's message template parameter (`[StructuredMessageTemplate(
//! nameof(message))]`), read off its declaration (`typeck/templates.rs`).
useyog_script_ids::system::STRUCTURED_MESSAGE_TEMPLATE;usesuper::threads::{attributes, text};usecrate::ast::Decl;/// The parameter `d` marks a message template, if it marks one.
pub(super)fntemplate(d:&Decl)->Option<String>{let a =attributes(d,STRUCTURED_MESSAGE_TEMPLATE).next()?;text(&a.args.first()?.value.kind)}