]> git.lizzy.rs Git - rust.git/commit
Merge #1208
authorbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 4 May 2019 18:38:10 +0000 (18:38 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 4 May 2019 18:38:10 +0000 (18:38 +0000)
commitaa7bdfd37f999607806cf47c0108d33a5b44b3e5
tree83e606dd367454ce65262b77e0a64d723c858d35
parent9c49f6c36e1e097f938946811d1e2f5eb70edca9
parent8198e13c26fe985af5893af7bdac04041880b461
Merge #1208

1208: [WIP] Goto for Macro's r=matklad a=Lapz

Adds goto definition for macros. Currently only works for macros in the current crate ~~otherwise it panics~~. Proper macro resolution needs to be added for it to resolve macros in other crates.

Todo
- [X] Allow goto from macro calls
- [X] Fix panics
- [x] Add tests

![Screen Recording 2019-04-25 at 18 00 24](https://user-images.githubusercontent.com/19998186/56754499-1dd01c00-6785-11e9-9e9a-1e36de70cfa3.gif)

Co-authored-by: Lenard Pratt <l3np27@gmail.com>
crates/ra_hir/src/source_binder.rs
crates/ra_syntax/src/ast/generated.rs
crates/ra_syntax/src/grammar.ron