ulo-macros 0.1.0-alpha.3

Macros for Ulo
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! `#[construct]` outside an `#[injectable]` or `#[controller]` impl: the attribute on the impl
//! strips the marker before the compiler sees it, so reaching this expansion means it was written
//! somewhere it means nothing.

use proc_macro2::{Span, TokenStream};

pub(crate) fn expand(_attr: TokenStream, _item: TokenStream) -> syn::Result<TokenStream> {
    Err(syn::Error::new(
        Span::call_site(),
        "#[construct] marks the constructor inside an #[injectable] or #[controller] impl block",
    ))
}