Jonas Schievink
|
b238ddd21a
|
Make macro def krate mandatory
Refactors builtin derive support to go through proper name resolution
|
2020-12-15 20:33:05 +01:00 |
|
Jonas Schievink
|
c31c3246a8
|
Basic support for decl macros 2.0
|
2020-12-15 18:43:34 +01:00 |
|
Jonas Schievink
|
c1cb595382
|
Move to upstream macro_rules! model
|
2020-12-15 15:37:37 +01:00 |
|
Jonas Schievink
|
da5027138d
|
Fix logic for determining macro calls
I believe this currently goes back all the way to the initial
user-written call, but that seems better than the current broken
behavior.
|
2020-12-08 19:11:12 +01:00 |
|
Jonas Schievink
|
4943ef085d
|
Make original_range a method on InFile<&SyntaxNode>
|
2020-12-08 19:01:27 +01:00 |
|
Jonas Schievink
|
3e6ffa5124
|
Fix proc macro token mapping
|
2020-12-03 18:38:05 +01:00 |
|
Jonas Schievink
|
0432aa0ed7
|
Publish diagnostics for macro expansion errors
|
2020-11-27 13:50:22 +01:00 |
|
Jonas Schievink
|
6a9338e979
|
Use ExpandResult instead of MacroResult
`MacroResult` is redundant
|
2020-11-26 16:48:17 +01:00 |
|
Jonas Schievink
|
9559bce311
|
Rename parse_macro to parse_macro_expansion
This does not parse macros, it expands a macro and parses the *result*
|
2020-11-24 21:57:51 +01:00 |
|
Jonas Schievink
|
d5e9bf80f9
|
hir_expand: propagate expansion errors
|
2020-11-24 19:00:23 +01:00 |
|
Jonas Schievink
|
9dc0afe854
|
Rename CustomDerive to ProcMacro
It handles fn-like macros too, and will handle attribute macros in the
future
|
2020-09-18 15:37:31 +02:00 |
|
Aleksey Kladov
|
b7aa4898e0
|
Rename ra_hir_expand -> hir_expand
|
2020-08-13 16:29:33 +02:00 |
|