-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to find macros using tool implementations. #4766
Comments
Okay, I try to implement this. But current compiler does not keep the information wanted by you (Thus |
Implementing this on |
So, adding location info to |
Implement done. I'll write spec, then open a new pull request tomorrow. I am in bed now. Good night. |
@makenowjust Thanks you so much! Good Night 😄 |
Screen shot: Interesting point is the line @faustinoaq This is what you want, okay? |
Wow, @makenowjust you say you need some days to implement and an hour later you're done? Crazy guy 🥇 |
@straight-shoota I like little contrast color, but I should have taken care it when show to others. Sorry 🙇 |
Yeah, your solution solve this issue. <3 <3 <3
A basic macro location is enough.
Does it show in json output too?
…On Tue, Aug 1, 2017 at 5:21 AM, TSUYUSATO Kitsune ***@***.***> wrote:
Screen shot:
[image: 2017-08-01 19 18 04]
<https://user-images.githubusercontent.com/6679325/28820868-300a03a6-76ee-11e7-9542-63168c6d4830.png>
Interesting point is the line # expand the macro 'imprime'
(/Users/makenowjust/Projects/labo/crystal/a.cr:1:1).
@faustinoaq <https://github.com/faustinoaq> This is what you want, okay?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4766 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC7Nx9HtaGa2r8i9j6ERdhY_e5YcYg-aks5sTvwigaJpZM4OoZSN>
.
|
@faustinoaq Of course, yes. And this JSON structure is same as |
Currently
crystal tool implementations
works for methods and functions, but not for macros.I know
crystal tool expand
but it doesn't show enough information:Using tool expand with the code above:
It doesn't show information about location or position.
It's very useful for editor support and tooling, see: https://github.com/faustinoaq/vscode-crystal-lang/issues/4
I think would be useful to add location info to
crystal tool expand
or allow to find macros usingcrystal tool implementations
.The text was updated successfully, but these errors were encountered: