Skip to content

LC0092: Add variable/parameter sub-target resolution with inheritance fallback #363

Description

@MODUSCarstenScholling

Implement additions to LC0092 for variable/parameter target handling.

Changes:

  • Add new naming targets:
    • LocalVariable
    • GlobalVariable
    • VarParameter
  • Update symbol dispatch:
    • Local variable symbols -> LocalVariable
    • Global variable symbols -> GlobalVariable
    • Non-var parameters -> Parameter
    • var parameters -> VarParameter
  • Add inheritance fallback for new target area:
    • LocalVariable -> Variable
    • GlobalVariable -> Variable
    • Parameter -> LocalVariable -> Variable
    • VarParameter -> Parameter -> LocalVariable -> Variable
  • Keep resolution priority:
    • nearest user override first
    • then nearest built-in default

Tests:

  • own override wins for LocalVariable, GlobalVariable, Parameter, VarParameter
  • nearest ancestor fallback when own override is missing
  • full fallback to Variable when only Variable override exists

Includes and resolves #342

Metadata

Metadata

Assignees

No one assigned

    Labels

    part of upcoming releaseAvailable in alpha/beta and waiting to be included in the next stable release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions