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

Method printDoStatement

src/LuaPrinter.ts:408–418  ·  view source on GitHub ↗
(statement: lua.DoStatement)

Source from the content-addressed store, hash-verified

406 }
407
408 public printDoStatement(statement: lua.DoStatement): SourceNode {
409 const chunks: SourceChunk[] = [];
410
411 chunks.push(this.indent("do\n"));
412 this.pushIndent();
413 chunks.push(...this.printStatementArray(statement.statements));
414 this.popIndent();
415 chunks.push(this.indent("end"));
416
417 return this.concatNodes(...chunks);
418 }
419
420 public printVariableDeclarationStatement(statement: lua.VariableDeclarationStatement): SourceNode {
421 const chunks: SourceChunk[] = [];

Callers 1

Calls 5

indentMethod · 0.95
pushIndentMethod · 0.95
printStatementArrayMethod · 0.95
popIndentMethod · 0.95
concatNodesMethod · 0.95

Tested by

no test coverage detected