|
Blender V5.3
|
#include <symbol_function.hh>
Inherits bsl::SymbolScope.
Public Types | |
| enum | Type { STATIC , MEMBER , GLOBAL } |
| enum class | EntryPointType { FRAG , VERT , COMP , NONE } |
| Public Types inherited from bsl::SymbolScope | |
| enum | Type { FUNCTION , CLASS , NAMESPACE , LOCAL , ROOT } |
Static Public Member Functions | |
| static Result< vector< SymbolClass * > > | to_arg_types (const SymbolTable &table, const SymbolScope &scope, ast::FuncParamList list) |
| static Result< vector< SymbolClass * > > | to_arg_types (const SymbolTable &table, const SymbolScope &scope, ast::FuncArgList list) |
Static Public Attributes | |
| static constexpr const char * | inline_fn_ret_id = "_r" |
Container for a function symbol.
All overloads of this function are contained inside the first declaration.
Definition at line 23 of file symbol_function.hh.
|
strong |
| Enumerator | |
|---|---|
| FRAG | |
| VERT | |
| COMP | |
| NONE | |
Definition at line 57 of file symbol_function.hh.
| Enumerator | |
|---|---|
| STATIC | |
| MEMBER | |
| GLOBAL | |
Definition at line 56 of file symbol_function.hh.
|
inline |
Definition at line 60 of file symbol_function.hh.
References COMP, decl, entry_point_type, fn_type, FRAG, bsl::SymbolScope::FUNCTION, GLOBAL, bsl::Symbol::identifier, if(), is_inline, MEMBER, NONE, bsl::Symbol::parent, return_type, STATIC, str, and bsl::SymbolScope::SymbolScope().
Referenced by add_overload(), and lookup_overload().
|
inline |
Definition at line 89 of file symbol_function.hh.
References entry_point_type, fn_type, bsl::SymbolScope::FUNCTION, NONE, bsl::Symbol::parent, return_type, and bsl::SymbolScope::SymbolScope().
| void bsl::SymbolFunction::add_argument | ( | bool | is_const, |
| SymbolClass * | type, | ||
| ast::Expr | default_value = {} ) |
Definition at line 186 of file symbol_function.cc.
References arg_const, arg_defaults, arg_types, and bsl::SymbolScope::type.
Referenced by bsl::SymbolParser::parse_function_arguments().
| void bsl::SymbolFunction::add_overload | ( | SymbolFunction * | fn | ) |
Definition at line 173 of file symbol_function.cc.
References overload_next, and SymbolFunction().
|
inline |
Definition at line 104 of file symbol_function.hh.
References entry_point_type, and NONE.
Referenced by bsl::SymbolParser::parse_function_arguments(), and bsl::SymbolParser::parse_function_return_type().
| Result< SymbolFunction * > bsl::SymbolFunction::lookup_overload | ( | ast::IdQualified | id, |
| const SymbolTable & | table, | ||
| const vector< SymbolClass * > & | arg_types ) |
Definition at line 95 of file symbol_function.cc.
References arg_types, bsl::AstNodeException::AstNodeException(), bsl::SymbolTable::err_symbol, is_specialization, bsl::is_strictly_better(), bsl::SymbolScope::lookup_function(), bsl::Symbol::original, bsl::OverloadAmbiguous, bsl::OverloadNotFound, bsl::SymbolTable::root, SymbolFunction(), and bsl::to_str().
|
inline |
Definition at line 99 of file symbol_function.hh.
References bsl::SymbolScope::as_class(), and bsl::Symbol::parent.
| void bsl::SymbolFunction::reserve_arguments | ( | int | n | ) |
Definition at line 179 of file symbol_function.cc.
References arg_const, arg_defaults, and arg_types.
|
static |
Definition at line 28 of file symbol_function.cc.
References arg_types, bsl::SymbolScope::lookup_class(), and bsl::SymbolScope::SymbolScope().
|
static |
Definition at line 16 of file symbol_function.cc.
References arg_types, bsl::SymbolTable::expr_type_analysis(), and bsl::SymbolScope::SymbolScope().
Referenced by bsl::SymbolScope::lookup_function().
| bool bsl::SymbolFunction::allow_vector_promotion = false |
Definition at line 40 of file symbol_function.hh.
| vector<bool> bsl::SymbolFunction::arg_const |
Definition at line 32 of file symbol_function.hh.
Referenced by add_argument(), and reserve_arguments().
Definition at line 34 of file symbol_function.hh.
Referenced by add_argument(), and reserve_arguments().
| vector<SymbolClass *> bsl::SymbolFunction::arg_types |
Definition at line 33 of file symbol_function.hh.
Referenced by add_argument(), lookup_overload(), reserve_arguments(), to_arg_types(), and to_arg_types().
| ast::FuncDecl bsl::SymbolFunction::decl = {} |
Definition at line 30 of file symbol_function.hh.
Referenced by SymbolFunction().
| enum bsl::SymbolFunction::EntryPointType bsl::SymbolFunction::entry_point_type |
Referenced by is_entry_point(), bsl::SymbolParser::parse_function_arguments(), SymbolFunction(), and SymbolFunction().
| enum bsl::SymbolFunction::Type bsl::SymbolFunction::fn_type |
Referenced by SymbolFunction(), and SymbolFunction().
|
staticconstexpr |
Definition at line 54 of file symbol_function.hh.
| bool bsl::SymbolFunction::is_builtin = false |
Definition at line 42 of file symbol_function.hh.
| bool bsl::SymbolFunction::is_complete = true |
Definition at line 38 of file symbol_function.hh.
| bool bsl::SymbolFunction::is_constexpr = false |
Definition at line 44 of file symbol_function.hh.
Referenced by bsl::ExpressionTypeParser::identifier().
| bool bsl::SymbolFunction::is_defined = true |
Definition at line 50 of file symbol_function.hh.
| bool bsl::SymbolFunction::is_error = false |
Definition at line 36 of file symbol_function.hh.
Referenced by bsl::ExpressionTypeParser::identifier(), and bsl::SymbolParser::parse_using_stmt().
| bool bsl::SymbolFunction::is_inline = false |
Definition at line 48 of file symbol_function.hh.
Referenced by SymbolFunction().
| bool bsl::SymbolFunction::is_specialization = false |
Definition at line 46 of file symbol_function.hh.
Referenced by lookup_overload(), bsl::SymbolParser::parse_template_inst(), and bsl::SymbolParser::parse_template_spec().
| SymbolFunction* bsl::SymbolFunction::overload_next = nullptr |
Definition at line 25 of file symbol_function.hh.
Referenced by add_overload().
| SymbolClass* bsl::SymbolFunction::return_type = nullptr |
Definition at line 28 of file symbol_function.hh.
Referenced by bsl::ExpressionTypeParser::identifier(), bsl::SymbolParser::parse_function_return_type(), bsl::CodegenContext::CodegenExpressionParser::subscript(), bsl::ExpressionTypeParser::subscript(), SymbolFunction(), and SymbolFunction().
| SymbolFunctionTemplate* bsl::SymbolFunction::template_data = nullptr |
Definition at line 27 of file symbol_function.hh.
Referenced by bsl::SymbolParser::parse_template_inst(), and bsl::SymbolParser::parse_template_spec().