Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@babel/traverse/lib/path/introspection.js
rd565449 r0c6b92a 8 8 exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; 9 9 exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; 10 exports.equals = equals;11 10 exports.getSource = getSource; 12 exports.has = has;13 exports.is = void 0;14 11 exports.isCompletionRecord = isCompletionRecord; 15 12 exports.isConstantExpression = isConstantExpression; … … 18 15 exports.isStatementOrBlock = isStatementOrBlock; 19 16 exports.isStatic = isStatic; 20 exports.isnt = isnt;21 17 exports.matchesPattern = matchesPattern; 22 18 exports.referencesImport = referencesImport; … … 38 34 return _matchesPattern(this.node, pattern, allowPartial); 39 35 } 40 function has(key) { 41 var _this$node; 42 const val = (_this$node = this.node) == null ? void 0 : _this$node[key]; 43 if (val && Array.isArray(val)) { 44 return !!val.length; 45 } else { 46 return !!val; 47 } 36 { 37 exports.has = function has(key) { 38 var _this$node; 39 const val = (_this$node = this.node) == null ? void 0 : _this$node[key]; 40 if (val && Array.isArray(val)) { 41 return !!val.length; 42 } else { 43 return !!val; 44 } 45 }; 48 46 } 49 47 function isStatic() { 50 48 return this.scope.isStatic(this.node); 51 49 } 52 const is = exports.is = has; 53 function isnt(key) { 54 return !this.has(key); 55 } 56 function equals(key, value) { 57 return this.node[key] === value; 50 { 51 exports.is = exports.has; 52 exports.isnt = function isnt(key) { 53 return !this.has(key); 54 }; 55 exports.equals = function equals(key, value) { 56 return this.node[key] === value; 57 }; 58 58 } 59 59 function isNodeType(type) {
Note:
See TracChangeset
for help on using the changeset viewer.