mirror of https://github.com/aamine/cbc
32 lines
800 B
Java
32 lines
800 B
Java
package net.loveruby.cflat.entity;
|
|
import net.loveruby.cflat.ast.TypeNode;
|
|
import java.util.List;
|
|
|
|
public class UndefinedFunction extends Function {
|
|
protected Params params;
|
|
|
|
public UndefinedFunction(TypeNode t, String name, Params params) {
|
|
super(false, t, name);
|
|
this.params = params;
|
|
}
|
|
|
|
public List<Parameter> parameters() {
|
|
return params.parameters();
|
|
}
|
|
|
|
public boolean isDefined() {
|
|
return false;
|
|
}
|
|
|
|
protected void _dump(net.loveruby.cflat.ast.Dumper d) {
|
|
d.printMember("name", name);
|
|
d.printMember("isPrivate", isPrivate());
|
|
d.printMember("typeNode", typeNode);
|
|
d.printMember("params", params);
|
|
}
|
|
|
|
public <T> T accept(EntityVisitor<T> visitor) {
|
|
return visitor.visit(this);
|
|
}
|
|
}
|