diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 15:02:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 15:05:12 +0900 |
| commit | 1acb5b010507dd2246b77b8c856612b86cb2eda4 (patch) | |
| tree | 0b199678e21b7fa89a34500539a65e31fffb3f1d /internal/rosa/azalea | |
| parent | 40b33f9fc7d171124ac5369312fb8b6a956161ca (diff) | |
internal/rosa: extra inputs in alternative path
This works around particularly unwieldy build systems.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/azalea')
| -rw-r--r-- | internal/rosa/azalea/evaluate.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/rosa/azalea/evaluate.go b/internal/rosa/azalea/evaluate.go index d57f5cac..3658ad6d 100644 --- a/internal/rosa/azalea/evaluate.go +++ b/internal/rosa/azalea/evaluate.go @@ -142,6 +142,8 @@ var ( IdentInputs = unique.Make(Ident("inputs")) // IdentRuntime has the same semantics as [IdentInputs]. IdentRuntime = unique.Make(Ident("runtime")) + // IdentExtra has the same semantics as [IdentInputs]. + IdentExtra = unique.Make(Ident("extra")) // IdentSource is a special argument in a package declaration where an // assignment of a [Val] with a single [Ident] passes through the evaluator. IdentSource = unique.Make(Ident("source")) @@ -291,6 +293,7 @@ func evaluateAny(d PF, s []Frame, expr, rp any) bool { for _, special := range [...]unique.Handle[Ident]{ IdentInputs, IdentRuntime, + IdentExtra, } { if slices.Contains(names, special) { if len(names) != 1 || len(arg.V) != 1 || arg.R { |
