forked from eslint/typescript-eslint-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Missing parameter properties info in constructors (fixes eslint#143
- Loading branch information
1 parent
69d2537
commit 6b38526
Showing
9 changed files
with
4,133 additions
and
2 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
1,131 changes: 1,131 additions & 0 deletions
1,131
tests/fixtures/typescript/basics/class-with-private-parameter-properties.result.js
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
tests/fixtures/typescript/basics/class-with-private-parameter-properties.src.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,6 @@ | ||
class Foo { | ||
constructor(private firstName: string, | ||
private readonly lastName: string, | ||
private age: number = 30, | ||
private readonly student: boolean = false) {} | ||
} |
1,131 changes: 1,131 additions & 0 deletions
1,131
tests/fixtures/typescript/basics/class-with-protected-parameter-properties.result.js
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
tests/fixtures/typescript/basics/class-with-protected-parameter-properties.src.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,6 @@ | ||
class Foo { | ||
constructor(protected firstName: string, | ||
protected readonly lastName: string, | ||
protected age: number = 30, | ||
protected readonly student: boolean = false) {} | ||
} |
1,131 changes: 1,131 additions & 0 deletions
1,131
tests/fixtures/typescript/basics/class-with-public-parameter-properties.result.js
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
tests/fixtures/typescript/basics/class-with-public-parameter-properties.src.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,6 @@ | ||
class Foo { | ||
constructor(public firstName: string, | ||
public readonly lastName: string, | ||
public age: number = 30, | ||
public readonly student: boolean = false) {} | ||
} |
Oops, something went wrong.