I knew this feature from the blog Crystal tools - The Crystal Programming Language write by @bcardiff
following is a screenshot from that blog, it really useful for find the definition of a macro.
But for current version: (1.6.0 dev), use same source code.
class Person
property name : String = ""
end
p = Person.new
p.name = "John" # put the cursor in over #name= call
The same feature not works anymore.
╰─ $ crystal tool implementations --cursor 1.cr:6:4 1.cr
1 implementation found
/home/zw963/Crystal/play/1.cr:2:3
~> macro property: expanded macro: macro_139795436169408:640:13
The output of
expanded macro: macro_139795436169408:640:13
is really not so useful for find the definition of property macro, but it works when this blog was posted, breaking changes?