diff --git a/src/nodes/EmptyStatement.ts b/src/nodes/EmptyStatement.ts new file mode 100644 index 0000000..1e08629 --- /dev/null +++ b/src/nodes/EmptyStatement.ts @@ -0,0 +1,8 @@ +import type ESTree from 'estree'; +import BaseJSNode from './BaseJSNode.js'; + +export default class EmptyStatement extends BaseJSNode { + public run(): any { + return undefined; + } +} \ No newline at end of file diff --git a/src/nodes/index.ts b/src/nodes/index.ts index 5fe66de..b55b5ac 100644 --- a/src/nodes/index.ts +++ b/src/nodes/index.ts @@ -8,6 +8,7 @@ export { default as BreakStatement } from './BreakStatement.js'; export { default as CallExpression } from './CallExpression.js'; export { default as ConditionalExpression } from './ConditionalExpression.js'; export { default as ContinueStatement } from './ContinueStatement.js'; +export { default as EmptyStatement } from './EmptyStatement.js'; export { default as ExpressionStatement } from './ExpressionStatement.js'; export { default as ForOfStatement } from './ForOfStatement.js'; export { default as ForStatement } from './ForStatement.js';