1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-14 09:11:14 +02:00

added @in (but not working due to moonscript bug) and @out

This commit is contained in:
Codinget
2020-12-01 21:43:04 +01:00
parent 17578bb721
commit ec5fc1cf7d
3 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -108,12 +108,12 @@ class DepNode
ctx = setmetatable {},
__index: (_, k) ->
switch k
when 'infile'
when 'infile', 'in'
f = first deps
f and f.name
when 'infiles'
foreach deps, => @name
when 'outfile'
when 'outfile', 'out'
f = first @outs
f and f.name
when 'outfiles'
@@ -182,9 +182,9 @@ class DepNode
ctx = setmetatable {},
__index: (_, k) ->
switch k
when 'infile' then @ins[1]
when 'infile', 'in' then @ins[1]
when 'infiles' then @ins
when 'outfile' then @outs[1]
when 'outfile', 'out' then @outs[1]
when 'outfiles' then @outs
when 'name' then @name
else error "No such field in TargetContext: #{k}"