File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
packages/typescript-estree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1676,7 +1676,7 @@ export class Converter {
1676
1676
| TSESTree . LogicalExpression
1677
1677
| TSESTree . BinaryExpression
1678
1678
> ( node , {
1679
- type : type ,
1679
+ type,
1680
1680
operator : getTextForTokenKind ( node . operatorToken . kind ) ! ,
1681
1681
left : this . converter (
1682
1682
node . left ,
Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ const ASSIGNMENT_OPERATORS: ts.AssignmentOperator[] = [
20
20
SyntaxKind . CaretEqualsToken ,
21
21
] ;
22
22
23
- const LOGICAL_OPERATORS : ts . LogicalOperator [ ] = [
23
+ const LOGICAL_OPERATORS : (
24
+ | ts . LogicalOperator
25
+ | ts . SyntaxKind . QuestionQuestionToken ) [ ] = [
24
26
SyntaxKind . BarBarToken ,
25
27
SyntaxKind . AmpersandAmpersandToken ,
28
+ SyntaxKind . QuestionQuestionToken ,
26
29
] ;
27
30
28
31
const TOKEN_TO_TEXT : { readonly [ P in ts . SyntaxKind ] ?: string } = {
Original file line number Diff line number Diff line change @@ -65452,7 +65452,7 @@ Object {
65452
65452
"type": "Literal",
65453
65453
"value": "",
65454
65454
},
65455
- "type": "BinaryExpression ",
65455
+ "type": "LogicalExpression ",
65456
65456
},
65457
65457
"optional": false,
65458
65458
"property": Object {
@@ -65621,7 +65621,7 @@ Object {
65621
65621
"type": "Literal",
65622
65622
"value": "",
65623
65623
},
65624
- "type": "BinaryExpression ",
65624
+ "type": "LogicalExpression ",
65625
65625
},
65626
65626
"optional": false,
65627
65627
"property": Object {
You can’t perform that action at this time.
0 commit comments