Skip to content

Track C# lambda capture references - #2613

Merged
Widthdom merged 5 commits into
mainfrom
codex/fix-issue2061
May 24, 2026
Merged

Track C# lambda capture references#2613
Widthdom merged 5 commits into
mainfrom
codex/fix-issue2061

Conversation

@Widthdom

@Widthdom Widthdom commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Emit C# capture reference edges when a lambda reads an enclosing local variable.
  • Include capture in graph traversal so callers/impact can surface closure dependencies.
  • Add regression coverage for lambda parameter shadowing and same-named method scopes.

Documentation and changelog

  • Updated DEVELOPER_GUIDE.md reference-kind filtering matrix in English and Japanese.
  • Added changelog.d/unreleased/2061.fixed.md.

Fixes #2061

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~ReferenceExtractorTests
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~ReferenceExtractorTests|FullyQualifiedName~DbReaderTests"
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "CSharpLambdaCapture|ReferenceKindMatrix_CallersIncludesCSharpLambdaCaptures"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • git diff --check
  • Adversarial review: No blocking/actionable issues found.

Follow-up candidates

@Widthdom
Widthdom marked this pull request as ready for review May 24, 2026 10:49
# Conflicts:
#	DEVELOPER_GUIDE.md
#	src/CodeIndex/Database/DbReader.cs
@Widthdom
Widthdom merged commit ef962a7 into main May 24, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue2061 branch May 25, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lambda capture closure variables not tracked as indirect references

1 participant