docs(xatu): note deprecated toPath resolution follow-up

This commit is contained in:
2026-09-19 15:16:03 -04:00
parent f5148af377
commit 55fe9032f4

View File

@@ -24,6 +24,8 @@ impl NodeRule for DeprecatedToPath {
} }
fn calls_to_path(function: &ast::Expr) -> bool { fn calls_to_path(function: &ast::Expr) -> bool {
// TODO: Once Xatu supports name resolution, report unqualified `toPath` only
// when it resolves to `builtins.toPath`.
match function { match function {
ast::Expr::Ident(ident) => ident.name == "toPath", ast::Expr::Ident(ident) => ident.name == "toPath",
ast::Expr::Select(select) => is_builtins_to_path(select), ast::Expr::Select(select) => is_builtins_to_path(select),