fix: 语义重名诊断引擎侧复核,放行跨语句列的函数名合并

供应商语义检查器把"同语句列"近似为"声明域非 Top/Function
且前一项是函数声明",for-in/for-of 域用空 ScopeFlags 因而漏掉
Top|Function 守卫,误拒跨语句列的函数名与 var 头合法合并。
引擎侧在归一化前按 AST 复核:仅当函数非任一 block/case 列表
直接成员、或其外层链不含该列表时剔除该重名诊断,复核后无
剩余错误则落回解析成功。
This commit is contained in:
2026-09-15 02:18:07 +00:00
parent da5e6d13ba
commit 4b0b52ade3
7 changed files with 531 additions and 1 deletions
Generated
+1
View File
@@ -1263,6 +1263,7 @@ version = "0.1.0"
dependencies = [
"oxc_allocator",
"oxc_ast",
"oxc_ast_visit",
"oxc_diagnostics",
"oxc_parser",
"oxc_semantic",