about summary refs log tree commit diff
path: root/src/libsyntax/ext/proc_macro_server.rs
AgeCommit message (Collapse)AuthorLines
2019-08-27proc_macro: Update `Span::def_site` to use the proc macro definition locationVadim Petrochenkov-4/+3
Which is no longer dummy and is available from metadata now.
2019-08-23Audit uses of `apply_mark` in built-in macrosVadim Petrochenkov-9/+2
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-15hygiene: `ExpnInfo` -> `ExpnData`Vadim Petrochenkov-1/+1
For naming consistency with everything else in this area
2019-08-15hygiene: Remove `Option`s from functions returning `ExpnInfo`Vadim Petrochenkov-2/+2
The expansion info is not optional and should always exist
2019-08-15syntax_pos: `NO_EXPANSION`/`SyntaxContext::empty()` -> `SyntaxContext::root()`Vadim Petrochenkov-1/+1
For consistency with `ExpnId::root`. Also introduce a helper `Span::with_root_ctxt` for creating spans with `SyntaxContext::root()` context
2019-08-05add unknown tokenAleksey Kladov-1/+1
2019-07-27Move proc macro server into libsyntaxVadim Petrochenkov-0/+715