How to inspect Type

Is there a simple way to find out where a type is defined and if it is only an alias for something more generic? Something like how @which works for methods.

I’m now trying to understand the mesh, Face, Poin3f0, … from Makie / GeometryTypes and it is not easy to crawl the source codes.

I generally use the constructor as function, either with



@edit ThatType(being, created)

to navigate to the source.

I also use the Emacs integration of ag (with helm-grep-ag) to browse all uses of something in code very quickly (screen shot below, if searching for Fix2 in Base). Even if you are not an Emacs user, your IDE may have something similar.

1 Like