INNER CODE UNIT · JavaScript
transformAttributeFactory
grapp-dev/stacks · plugin/index.js:22
const transformAttributeFactory = attributes => {
return (attributeName, expressionName) => {
const attribute = getAttribute(attributes, attributeName);
if (attribute) {
return makeBreakpointCallExpression(expressionName, attribute.value);
}
};
};
const makeImportSpecifier = name => {
const identifier = t.Identifier(name);
return t.ImportSpecifier(identifier, identifier);
};
let importDeclaration = undefined;
let program = undefined;