sonar-delphi
sonar-delphi copied to clipboard
Improve procedural type modeling around routine directives
This PR makes a few improvements:
- fixes parsing errors on anonymous methods with routine directives
- fixes an issue where non-routine procedural types (procvars, anonymous methods, etc.) could never be considered variadic
- which fixes a downstream
IndexOutOfBoundsExceptionthat surfaced in theVariableInitializationrule
- which fixes a downstream
- tidies the AST a bit around anonymous methods by introducing
AnonymousMethodHeadingNode - persists routine directives into
ProcedureType
Fixes #172 and #297.