UNPKG

@ui5/linter

Version:

A static code analysis tool for UI5

33 lines 895 B
import Fix from "../../ui5Types/fix/Fix.js"; export class JsonFix extends Fix { startPos; endPos; visitLinterNode(_node, _sourcePosition, _helpers) { // JSON fixes don't use the linter node return true; } getNodeSearchParameters() { // JSON fixes don't use the node search parameters return { nodeTypes: [], position: { line: 0, column: 0, }, }; } visitAutofixNode(_node, _position, _sourceFile) { // JSON fixes don't use the TypeScript node return true; } getAffectedSourceCodeRange() { if (this.startPos === undefined || this.endPos === undefined) { return undefined; } return { start: this.startPos, end: this.endPos, }; } } //# sourceMappingURL=JsonFix.js.map