traverse(ast, { ObjectProperty(astPath) { if (astPath.node.value.name === self.argv.parentName) { if (astPath.parent.properties.some(element => { return element.key.name === 'children'; })) { isChildren = true; } astPath.skip(); } } });
traverse(ast, { ArrayExpression(astPath) { const parent = astPath.findParent(p => p.isObjectProperty); const properties = parent.parent.properties; properties.forEach(element => { if (element.value && element.value.name === self.argv.parentName) { astPath.node.elements.push(self.generateEl()); astPath.skip(); } }); } });
!node.computed && path.get('key').isIdentifier() && node.key.name === MAGIC_KEY ) { const magicValue = path.get('value').evaluate();
if (path.node.__skipped || (path.node.__idDependencies && path.node.__idDependencies.length > MAX_DEPENDENCIES)) { return; if (!babelTypes.isMemberExpression(path.node.left)) { if (babelTypes.isIdentifier(path.node.left.object)) { if (babelTypes.isNumericLiteral(path.node.left.property)) { if (babelTypes.isStringLiteral(path.node.left.property) && !propertyNames.has(path.node.left.property.value)) { babelTypes.isIdentifier(path.node.callee) && !globalIdentifiers.has(path.node.callee.name)) { if (path.isUnaryExpression() && path.node.operator == '-') { path.node.type, generated, path.parentPath.isExpressionStatement(), source.relPath, path.node.__idDependencies, Boolean(path.node.__needsSuper));