We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399f2c1 commit 2acdaeeCopy full SHA for 2acdaee
lute/std/libs/syntax/printer.luau
@@ -123,15 +123,15 @@ local function printVisitor()
123
return printer
124
end
125
126
-function printNode(node: luau.AstExpr | luau.AstStat | luau.AstType, visit: any): string
+function printNode<T>(node: T, visit: (node: T, visitor: visitor.Visitor) -> ()): string
127
local printer = printVisitor()
128
visit(node, printer)
129
return buffer.readstring(printer.result, 0, printer.cursor)
130
131
132
--- Returns a string representation of an AstExpr
133
function printExpr(expr: luau.AstExpr): string
134
- return printNode(expr, visitor.visitExpression)
+ return printNode(expr, visitor.visitExpression :: any)
135
136
137
--- Returns a string representation of an AstStat
0 commit comments