Skip to content

Do not emit phantom functions for static lambda modifiers #4453

Description

@Widthdom

Summary

A static lambda inside a method body is an expression, not a nested function declaration named static. It should be represented as a lambda only if lambda symbols are enabled.

Evidence

definition static includes a function named static at NameFold.cs line 122 whose signature is the stateful static lambda passed to string.Create, with a malformed overload disambiguator built from the lambda body.

Evidence paths:

  • src/CodeIndex/Database/NameFold.cs

Environment

Locally built cdidx 1.37.2 from origin/main 098db58; full net8/net9 test suite passed before dogfooding.

Duplicate check

No equivalent open issue existed before this filing batch. Closed issues were not treated as blockers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodex

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions