Area restrita - Questionario
This commit is contained in:
Generated
Vendored
+2
-6
@@ -36,9 +36,7 @@ var _default = exports.default = (0, _helperPluginUtils.declare)(({
|
||||
const state = {
|
||||
found: false
|
||||
};
|
||||
{
|
||||
path.traverse(containsClassExpressionVisitor, state);
|
||||
}
|
||||
path.traverse(containsClassExpressionVisitor, state);
|
||||
return state.found;
|
||||
}
|
||||
function wrap(path) {
|
||||
@@ -46,9 +44,7 @@ var _default = exports.default = (0, _helperPluginUtils.declare)(({
|
||||
yield: t.isYieldExpression(path.node),
|
||||
await: t.isAwaitExpression(path.node)
|
||||
};
|
||||
{
|
||||
path.traverse(containsYieldOrAwaitVisitor, context);
|
||||
}
|
||||
path.traverse(containsYieldOrAwaitVisitor, context);
|
||||
let replacement;
|
||||
if (context.yield) {
|
||||
const fn = t.functionExpression(null, [], t.blockStatement([t.returnStatement(path.node)]), true, context.await);
|
||||
|
||||
Generated
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user