mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove visualizeWithSelf
This commit is contained in:
parent
ff329bcc48
commit
52bafd7eeb
1 changed files with 1 additions and 15 deletions
|
@ -205,20 +205,6 @@ struct Printer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void visualizeWithSelf(AstExpr& expr, bool self)
|
|
||||||
{
|
|
||||||
if (!self)
|
|
||||||
return visualize(expr);
|
|
||||||
|
|
||||||
AstExprIndexName* func = expr.as<AstExprIndexName>();
|
|
||||||
LUAU_ASSERT(func);
|
|
||||||
|
|
||||||
visualize(*func->expr);
|
|
||||||
writer.symbol(":");
|
|
||||||
advance(func->indexLocation.begin);
|
|
||||||
writer.identifier(func->index.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
void visualizeTypePackAnnotation(const AstTypePack& annotation, bool forVarArg)
|
void visualizeTypePackAnnotation(const AstTypePack& annotation, bool forVarArg)
|
||||||
{
|
{
|
||||||
advance(annotation.location.begin);
|
advance(annotation.location.begin);
|
||||||
|
@ -366,7 +352,7 @@ struct Printer
|
||||||
}
|
}
|
||||||
else if (const auto& a = expr.as<AstExprCall>())
|
else if (const auto& a = expr.as<AstExprCall>())
|
||||||
{
|
{
|
||||||
visualizeWithSelf(*a->func, a->self);
|
visualize(*a->func);
|
||||||
writer.symbol("(");
|
writer.symbol("(");
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue