Update Bot

This commit is contained in:
2026-03-15 11:58:43 +01:00
parent b67c111ffc
commit cd99275933
560 changed files with 23173 additions and 55113 deletions

View File

@@ -17,9 +17,8 @@ const vk = require("eslint-visitor-keys");
//-----------------------------------------------------------------------------
/**
* @import { Language, SourceCode } from "@eslint/core";
* @import { ESQueryOptions } from "esquery";
* @import { ESQueryParsedSelector } from "./esquery.js";
* @import { Language, SourceCode } from "@eslint/core";
* @import { SourceCodeVisitor } from "./source-code-visitor.js";
*/
@@ -48,10 +47,11 @@ class ESQueryHelper {
* Creates a new instance.
* @param {SourceCodeVisitor} visitor The visitor containing the functions to call.
* @param {ESQueryOptions} esqueryOptions `esquery` options for traversing custom nodes.
* @returns {NodeEventGenerator} new instance
*/
constructor(visitor, esqueryOptions) {
/**
* The visitor to use during traversal.
* The emitter to use during traversal.
* @type {SourceCodeVisitor}
*/
this.visitor = visitor;
@@ -288,10 +288,7 @@ class SourceCodeTraverser {
false,
)
.forEach(selector => {
visitor.callSync(
selector,
...(step.args ?? [step.target]),
);
visitor.callSync(selector, step.target);
});
currentAncestry.unshift(step.target);
} else {
@@ -303,10 +300,7 @@ class SourceCodeTraverser {
true,
)
.forEach(selector => {
visitor.callSync(
selector,
...(step.args ?? [step.target]),
);
visitor.callSync(selector, step.target);
});
}
} catch (err) {