59 template<
typename AstNodeT>
63 const string &suffix =
"")
72 if (
decl.is_method()) {
73 loc = decl.parent(ast::NodeType::ClassDecl).front();
75 for (
ast::Attr attr :
decl.attributes().template children_of_type<ast::Attr>()) {
76 string_view id = attr.identifier().str();
78 entry_point_type = EntryPointType::VERT;
80 else if (
id ==
"fragment") {
83 else if (
id ==
"compute") {
112 const vector<SymbolClass *> &arg_types);
117 void reserve_arguments(
int n);
119 static Result<vector<SymbolClass *>> to_arg_types(
const SymbolTable &table,
120 const SymbolScope &scope,
122 static Result<vector<SymbolClass *>> to_arg_types(
const SymbolTable &table,
123 const SymbolScope &scope,
128 optional<vector<MatchRank>> get_match_ranks(
const SymbolTable &table,
SymbolTemplate< SymbolFunction > SymbolFunctionTemplate
SymbolFunctionTemplate * template_data
vector< ast::Expr > arg_defaults
SymbolClass * return_type
enum bsl::SymbolFunction::EntryPointType entry_point_type
SymbolClass * parent_class()
vector< SymbolClass * > arg_types
SymbolFunction * overload_next
SymbolFunction(SymbolScope *parent, SymbolClass *return_type, AstNodeT decl, const string &suffix="")
bool is_entry_point() const
SymbolFunction(SymbolScope *parent, Token tok, SymbolClass *return_type, const string &id, Type fn_type)
static constexpr const char * inline_fn_ret_id
enum bsl::SymbolFunction::Type fn_type
bool allow_vector_promotion
SymbolScope(ast::LocalScope decl)