1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
|
# File 'lib/duby/transform.rb', line 1071
def transform(transformer, parent)
Call.new(parent, position, 'each') do |each|
[
transformer.transform(iter_node, each),
[],
Block.new(each, body_node.position) do |block|
[
Arguments.new(block, var_node.position) do |args|
[
[RequiredArgument.new(args,
var_node.position,
var_node.name)
]
]
end,
transformer.transform(body_node, block)
]
end
]
end
end
|