Skip to content

Commit

Permalink
fix: rename stype to type (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Jun 19, 2023
1 parent a99f4ea commit a1858c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/convert-chain-expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (path) => {
const {expression} = path.node;

if (expressionPath.isCallExpression())
expression.stype = 'OptionalCallExpression';
expression.type = 'OptionalCallExpression';
else
expression.type = 'OptionalMemberExpression';

Expand Down
3 changes: 1 addition & 2 deletions test/fixture/chain-expression.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"name": "baz"
},
"init": {
"type": "CallExpression",
"type": "OptionalCallExpression",
"start": 34,
"end": 41,
"loc": {
Expand Down Expand Up @@ -193,7 +193,6 @@
},
"arguments": [],
"optional": true,
"stype": "OptionalCallExpression",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
Expand Down

0 comments on commit a1858c4

Please sign in to comment.