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

Method indent

src/LuaPrinter.ts:273–275  ·  view source on GitHub ↗
(input: SourceChunk = "")

Source from the content-addressed store, hash-verified

271 }
272
273 protected indent(input: SourceChunk = ""): SourceChunk {
274 return this.concatNodes(this.currentIndent, input);
275 }
276
277 protected createSourceNode(node: lua.Node, chunks: SourceChunk | SourceChunk[], name?: string): SourceNode {
278 const { line, column } = lua.getOriginalPos(node);

Callers 15

printCommentMethod · 0.95
printDoStatementMethod · 0.95
printIfStatementMethod · 0.95
printWhileStatementMethod · 0.95
printRepeatStatementMethod · 0.95
printForStatementMethod · 0.95
printForInStatementMethod · 0.95
printGotoStatementMethod · 0.95
printLabelStatementMethod · 0.95
printReturnStatementMethod · 0.95

Calls 1

concatNodesMethod · 0.95

Tested by

no test coverage detected