17 lines
530 B
JavaScript
17 lines
530 B
JavaScript
export function ignore(path) {
|
|
path.skip();
|
|
}
|
|
export const shallowIgnoreVisitors = {
|
|
FunctionDeclaration: { enter: ignore },
|
|
FunctionExpression: { enter: ignore },
|
|
Class: { enter: ignore },
|
|
IfStatement: { enter: ignore },
|
|
WithStatement: { enter: ignore },
|
|
SwitchStatement: { enter: ignore },
|
|
CatchClause: { enter: ignore },
|
|
Loop: { enter: ignore },
|
|
ExportNamedDeclaration: { enter: ignore },
|
|
ExportDefaultDeclaration: { enter: ignore },
|
|
ConditionalExpression: { enter: ignore },
|
|
};
|