MikePopoloski / slang

SystemVerilog compiler and language services
MIT License
546 stars 114 forks source link

MethodPrototypeSymbol::serialize: write subroutine, if it exists #981

Closed tdp2110 closed 2 weeks ago

tdp2110 commented 2 weeks ago

As in 47010bdd (NewClassExpression::serializeTo: write isSuperClass property, Wed Apr 24 15:17:01 2024 -0400), the subroutine member of a MethodPrototypeSymbol is a crucial property for understanding the prototype. Write it in the serializer (when it exists), so that consumers, such as slang-explorer, can see it.