blob: 23cceb0f0a73ae90bc2c6600fff5f05d845797a7 (
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
|
package org.zwobble.couscous.backends.csharp.primitives;
import org.zwobble.couscous.ast.ExpressionNode;
import org.zwobble.couscous.ast.Node;
import org.zwobble.couscous.types.Type;
import java.util.List;
class PrimitiveStaticMethod {
private final PrimitiveStaticMethodGenerator generate;
private final Type returnType;
PrimitiveStaticMethod(PrimitiveStaticMethodGenerator generate, Type returnType) {
this.generate = generate;
this.returnType = returnType;
}
public Type getReturnType() {
return returnType;
}
public Node generate(List<ExpressionNode> arguments) {
return generate.generate(arguments);
}
}
|