Changeset e29cc2e for trip-planner-front/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js
r59329aa re29cc2e 64 64 65 65 function isSimpleMemberExpression(expression) { 66 expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapper s(expression);66 expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression); 67 67 return core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object); 68 68 } … … 145 145 const replaceKey = isCall ? "callee" : "object"; 146 146 const chainWithTypes = node[replaceKey]; 147 let chain = chainWithTypes; 148 149 while (helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(chain)) { 150 chain = chain.expression; 151 } 152 147 const chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes); 153 148 let ref; 154 149 let check; … … 199 194 var _baseRef; 200 195 201 const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapper s(replacementPath.get("object")).node;196 const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object); 202 197 let baseRef; 203 198
Note:
See TracChangeset
for help on using the changeset viewer.