Implement EmptyStatement node generation

I don't even know what does the "procrastination" word mean. `EmptyStatement` is the most useful node ever.
master
Yury Kurlykov 2020-04-28 15:52:35 +10:00
parent 5266ebed21
commit ace635c999
Signed by: t1meshift
GPG Key ID: B133F3167ABF94D8
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ class StatementListener(JSBaseListener):
def enterEmptyStatement(self, ctx: JavaScriptParser.EmptyStatementContext):
"""Listener for EmptyStatement."""
logging.debug("Entered section EmptyStatement")
loc = _get_source_location(ctx, None)
self._stmt = nodes.EmptyStatement(loc)
pass
def enterExpressionStatement(