We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af44c0 commit 320dfb8Copy full SHA for 320dfb8
tasks/ast_tools/src/generators/typescript.rs
@@ -480,11 +480,7 @@ fn amend_oxlint_types(code: &str) -> String {
480
let mut code = SPAN_REGEX.replace(code, SpanReplacer).into_owned();
481
482
// Replace `hashbang` field with `comments` and `tokens` fields in `Program`
483
- code = code.replacen(
484
- "hashbang: Hashbang | null;",
485
- "comments: Comment[]; tokens: Token[];",
486
- 1,
487
- );
+ code = code.replacen("hashbang: Hashbang | null;", "comments: Comment[]; tokens: Token[];", 1);
488
489
// Make `parent` fields non-optional
490
#[expect(clippy::disallowed_methods)]
0 commit comments