You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
csharp args: per-parameter attribute with doubly-nested parens breaks the parameter-list capture's 1-level nesting limit #2237
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
(line 410, 4 real parameters) and ParseNamespaceBodyWorker (line 562, 5 real parameters, same shape plus one more).
GitGalaxy reports args=2 for both; tree-sitter correctly reports 4 and 5.
Root cause: the C# args rule's parameter-list capture ((\((?:[^()]|\([^()]*\))*\))) only tolerates ONE level of paren nesting. The first parameter here carries a per-parameter attribute with TWO levels of nesting — [NotNullIfNotNull(nameof(openBraceOrSemicolon))] — so the capture fails to match the real parameter list and falls through to a wrong match elsewhere. Confirmed in isolation: the regex fails against the signature with the attribute present, and succeeds once the attribute is stripped.
Note: ctags also produces zero tags for either function on this exact construct (confirmed via a direct ctags --output-format=json run) — a separate, pre-existing ctags limitation on this file, not corroborating either reading.
This is a fourth, narrower mechanism than the three issue #2051 already fixed (tuple returns, capture-group truncation on tuple params, missing generic-stepper) — #2051's fix didn't address per-parameter-attribute nesting depth.
Suggested fix: extend the args capture's nesting tolerance to at least 2 levels (matching whatever func_start's own return-type/annotation handling already tolerates, if it does), or special-case per-parameter attributes the way other languages special-case similar prefixes.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Activity
docs: full tri-comparison ledger sweep -- 49 shapes resolved, 0 unval…
fix(typescript): recognize negation-body arrows, optional method sign…