public CompilerError UnknownArgument(FunctionType type, PositionalArgument arg) => Add($"Argument {arg.Position} does not exist in {type}.");
public BuiltinFunction(FunctionType type) { this.Type = type ?? throw new ArgumentNullException(nameof(type)); }
public CompilerError UnknownArgument(FunctionType type, NamedArgument arg) => Add($"Argument {arg.Name} does not exist in {type}.");
public BuiltinFunction(FunctionType type, LLVMValueRef function) : this(type) { this.function = function; }