This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rome_js_analyze): Add constructor support (#4605)
- Loading branch information
1 parent
9cde65c
commit 08645a8
Showing
11 changed files
with
775 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
crates/rome_js_analyze/tests/specs/suspicious/noDuplicateParameters/invalid.jsonc
This file was deleted.
Oops, something went wrong.
214 changes: 0 additions & 214 deletions
214
crates/rome_js_analyze/tests/specs/suspicious/noDuplicateParameters/invalid.jsonc.snap
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
crates/rome_js_analyze/tests/specs/suspicious/noDuplicateParameters/invalid.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function b(a, b, b) {} | ||
function c(a, a, a) {} | ||
const d = (a, b, a) => {}; | ||
function e(a, b, a, b) {} | ||
var f = function (a, b, b) {}; | ||
class G { | ||
ggg(a, a, a) {} | ||
} | ||
let objectMethods = { method(a, b, c, c) {} }; | ||
var h = function (a, b, a) {}; | ||
export default function (a, b, a, a) {} | ||
function f({ test: res = 3 }, res) {} | ||
export function f2(a, b, c = (a, b, b) => {}) {} | ||
class A { | ||
constructor(a, a) {} | ||
} | ||
class A { | ||
constructor(private a, a) {} | ||
} | ||
class A { | ||
constructor(a, readonly a) {} | ||
} | ||
class A { | ||
constructor(private a, private a) {} | ||
} | ||
class A { | ||
constructor(readonly a, private a) {} | ||
} |
Oops, something went wrong.