Keep the transform's arity inside its operand func, skip calls in compileWhole's column check, and file the two tokens for renaming

This commit is contained in:
2026-09-24 23:33:05 +02:00
committed by Lillem4n
parent 2a7499e93c
commit bb2bbe9697
4 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -265,10 +265,10 @@ func hintableRef(name string) bool {
}
// builtinOperands lists the fields a call reads as operands, empty for a builtin that
// reads none, or a call checkFunc refuses.
// reads none or is unknown.
func builtinOperands(name string, args []string) []string {
b, known := builtins[name]
if !known || b.operands == nil || (b.arity >= 0 && len(args) != b.arity) {
if !known || b.operands == nil {
return nil
}
return b.operands(args)