MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / statementMayRequireSemiColon

Method statementMayRequireSemiColon

src/LuaPrinter.ts:293–300  ·  view source on GitHub ↗
(statement: lua.Statement)

Source from the content-addressed store, hash-verified

291 }
292
293 private statementMayRequireSemiColon(statement: lua.Statement): boolean {
294 // Types of statements that could create ambiguous syntax if followed by parenthesis
295 return (
296 lua.isVariableDeclarationStatement(statement) ||
297 lua.isAssignmentStatement(statement) ||
298 lua.isExpressionStatement(statement)
299 );
300 }
301
302 private nodeStartsWithParenthesis(sourceNode: SourceNode): boolean {
303 let result: boolean | undefined;

Callers 1

printStatementArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected