blob: 9e878469fcf30c589ebe1519dd57935cf6db0f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package org.shedlang.compiler.shid.instructions;
import org.shedlang.compiler.sources.Source;
import java.util.List;
/**
* Pop a receiver and arguments from the temporary value stack and call the
* receiver with those arguments.
*
* <p>Specifically, the values should have been pushed onto the temporary value
* stack in the following order:</p>
*
* <ul>
* <li>The receiver i.e. the function to be called.</li>
* <li>The positional arguments, from left to right.</li>
* <li>The named arguments, in the same order as <code>namedArgNames</code>.</li>
* </ul>
*/
public record ShidCall(
int positionalArgCount,
List<String> namedArgNames,
Source source
) implements ShidInstruction {
@Override
public boolean isBlockTerminator() {
return false;
}
}
|