docs(xatu): note deprecated toPath resolution follow-up
This commit is contained in:
@@ -24,6 +24,8 @@ impl NodeRule for DeprecatedToPath {
|
||||
}
|
||||
|
||||
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 {
|
||||
ast::Expr::Ident(ident) => ident.name == "toPath",
|
||||
ast::Expr::Select(select) => is_builtins_to_path(select),
|
||||
|
||||
Reference in New Issue
Block a user