(statement: lua.Statement)
| 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; |