From 17863a2396a5848502ae89b81b1fd411eaf04326 Mon Sep 17 00:00:00 2001 From: weifangc Date: Mon, 17 Nov 2025 18:07:13 +0800 Subject: [PATCH] chore: fix incorrect function name in comment Signed-off-by: weifangc --- internal/checker/checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/checker/checker.go b/internal/checker/checker.go index c9bb8dabd7..1e00a45f25 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -2003,7 +2003,7 @@ func isSameScopeDescendentOf(initial *ast.Node, parent *ast.Node, stopAt *ast.No return false } -// stopAtAnyPropertyDeclaration is used for detecting ES-standard class field use-before-def errors +// isPropertyImmediatelyReferencedWithinDeclaration is used for detecting ES-standard class field use-before-def errors func isPropertyImmediatelyReferencedWithinDeclaration(declaration *ast.Node, usage *ast.Node, stopAtAnyPropertyDeclaration bool) bool { // always legal if usage is after declaration if usage.End() > declaration.End() {