Repository navigation
csharp: a call passing a lambda is not a definition of the callee (Part of #5685) - #5843
Conversation
…rt of #5685) Branch C's block-opening lookahead crossed `;` and braces, and its free last segment let `(x)` in `Walk(n, (x) => {` read as `Walk(...) =>`. A parameter list now holds no `;`, brace or bare `(` in the tail. Golden drift: 15 roslyn call sites no longer counted. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5843 @ c41a6fc: 1 failed check(s) == shard 4 (1666524 LOC) (failure) -- real |
…with a lambda in the body are now definitions) (#5883) Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #5685 (siblings of #5462 / #5684).
C#
func_startBranch C ("zero-prefix") used a block-opening lookahead whose segments crossed;and braces, and whose free last segment allowed a bare(. SoWalk(n, (x) => { Use(x); if (Check(x)) {matched as a definition ofWalk(via(x) =>, or a later) {). The lookahead's parameter text now holds no;, brace or bare(in the tail.Checklist: done [c:0c021a7c]
Checklist: partial [c:0f3ad4df] -- owner decision on lambda counting vs ctags
__anonentries, not a regex fix; untouchedClass table (Branch C lookahead, C#)
Walk(n, (x) => { ...; if (f(x)) {(x) =>\n{delegate (T x) { ...x => {,async (x) => {Walk(n, (x) => f(x));thenif (c) {int F(string s = "a", int[] a = null)\n{,Eq(int a) => ..., nested-paren defaultEvidence
Golden drift attributed: only
csharp/roslynWorkspace.cs 156 to 146, CSharpCompilation.cs 232 to 230, MethodCompiler.cs 58 to 55. I diffed old vs new rule on those files: all 15 dropped matches are call sites (SetCurrentSolution(,OnAnyDocumentTextChanged(,Logger.Log(,Sort(, ...) passing a lambda.Gates:
pr_gates --fast7/7,--ratchets8/8 pass; csharp tests 557 pass. Blessed viagolden-lock.sh crucible_check.py --update --yes.Cross-repo: none.
🤖 Generated with Claude Code