Skip to content

Commit

Permalink
feat(nodes): Add EmptyStatement
Browse files Browse the repository at this point in the history
Doesn't do anything. The only reason I'm adding it is so that the library doesn't print any warnings.
  • Loading branch information
LuanRT committed Dec 5, 2024
1 parent 7f69009 commit c5d3f9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/nodes/EmptyStatement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type ESTree from 'estree';
import BaseJSNode from './BaseJSNode.js';

export default class EmptyStatement extends BaseJSNode<ESTree.ContinueStatement> {
public run(): any {
return undefined;
}
}
1 change: 1 addition & 0 deletions src/nodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c5d3f9d

Please sign in to comment.