Perl5-IDEA
Perl5-IDEA copied to clipboard
Dynamically generated properties / subs
Discussed in https://github.com/Camelcade/Perl5-IDEA/discussions/2416
Originally posted by didster August 2, 2021 Love the plugin!
Is there anyway to manually tell plugin that certain properties exist in a package ?
For example, I make heavy use of the Class::DBI module in many of my Perl programs for database ORM. This module works by dynamically generating sub's on the fly for the database columns, none of which show in Intellisense given they dont exist as static sub's within the derived module. I'd love to be able to say something like
package MyPackage;
#@subs foo bar biff
And foo bar and biff are shown for Intellisense for anything that has #@type MyPackage