sonar-delphi icon indicating copy to clipboard operation
sonar-delphi copied to clipboard

Improve procedural type modeling around routine directives

Open cirras opened this issue 1 year ago • 0 comments

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 IndexOutOfBoundsException that surfaced in the VariableInitialization rule
  • tidies the AST a bit around anonymous methods by introducing AnonymousMethodHeadingNode
  • persists routine directives into ProcedureType

Fixes #172 and #297.

cirras avatar Oct 02 '24 06:10 cirras