luau-lang / luau

A fast, small, safe, gradually typed embeddable scripting language derived from Lua
https://luau-lang.org
MIT License
3.84k stars 354 forks source link

Store `definitionLocation` in ClassType #1313

Closed JohnnyMorganz closed 3 days ago

JohnnyMorganz commented 1 week ago

Store the location of an AstStatDeclareClass in the ClassType as definitionLocation.

This is useful for documentation comments and Go To Definition on a class type

https://github.com/luau-lang/luau/issues/1137#issuecomment-2212413633