Crate swc_macros_common[][src]

Modules

binder

Example

derive
prelude

Macros

fail

fail! is a panic! with location reporting.

unimplemented
unreachable

Functions

call_site
def_site

Span::def_site().located_at(Span::call_site()).as_token()

doc_str

Returns None if attr is not a doc attribute.

is_attr_name
print

attr - tokens inside #[]. e.g. derive(EqIgnoreSpan), ast_node