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() {