Skip to content

Allow VirtualFormalParameters to be extended on demand #316

Description

@johannesduesing

Currently, the VirtualFormalParameters are computed once and are then final. They depend on the number of DeclaredMethods that have a single defined method upon initialization. Since the set of declared methods can be extended on demand, this is not deterministic - we likely want to update the virtual formal parameters in a similar way.

This issue came up in this PR discussion

Activity

  1. johannesduesing commented on Sep 18, 2025

    @johannesduesing
    CollaboratorAuthor

    This will likely be more complicated than expected. VirtualFormalParameters represent the receiver object for non-static methods. For virtual declared emthods, we do not know whether they are static or not. Thus, we might need to pass a "static-hint" when creating VirtualDeclaredMethod objects in order to correctly compute virtual formal parameters.

  2. removed their assignment
    on Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions