|
Blender V5.3
|
#include <symbol_variable.hh>
Inherits bsl::Symbol.
Public Member Functions | |
| SymbolVariable (SymbolScope *parent, SymbolClass *type, ast::Declarator decl, const SymbolTable &table) | |
| SymbolVariable (SymbolScope *parent, SymbolClass *type, ast::EnumValue decl) | |
| SymbolVariable (SymbolScope *parent, SymbolClass *type, Token id, const string &str) | |
| void | set_offset (bool is_union, int &offset) |
| SymbolClass * | parent_class () |
| string | value_str () const |
Public Attributes | |
| SymbolClass * | type = nullptr |
| ast::Expr | reference_value = {} |
| ast::Expr | capacity_value = {} |
| ast::Expr | condition = {} |
| ConstexprValue | value = ConstexprError(0) |
| ResourceType | res_type = ResourceType::NONE |
| int8_t | array_dimensions = 0 |
| int | array_elements = 0 |
| int | offset = 0 |
| int | bit_offset = 0 |
| int | bit_length = 0 |
| bool | is_bitfield = false |
| bool | is_static = false |
| bool | is_error = false |
| bool | is_constexpr = false |
| bool | is_macro = false |
| bool | is_const = false |
| bool | is_compilation_const = false |
| Public Attributes inherited from bsl::Symbol | |
| string | identifier |
| string | original |
| SourceLocation | loc |
| SymbolScope * | parent = nullptr |
Represent variable declarations, parameters, or enum values.
Definition at line 42 of file symbol_variable.hh.
| bsl::SymbolVariable::SymbolVariable | ( | SymbolScope * | parent, |
| SymbolClass * | type, | ||
| ast::Declarator | decl, | ||
| const SymbolTable & | table ) |
Definition at line 21 of file symbol_variable.cc.
References array_dimensions, bsl::Symbol::identifier, if(), is_bitfield, is_compilation_const, is_static, bsl::Symbol::parent, str, and type.
|
inline |
Definition at line 82 of file symbol_variable.hh.
References bsl::Symbol::identifier, is_static, bsl::Symbol::parent, str, and type.
|
inline |
Definition at line 92 of file symbol_variable.hh.
References bsl::Symbol::parent, str, and type.
| SymbolClass * bsl::SymbolVariable::parent_class | ( | ) |
Definition at line 76 of file symbol_variable.cc.
References bsl::SymbolScope::as_class(), bsl::Symbol::parent, and parent_class().
Referenced by parent_class().
| void bsl::SymbolVariable::set_offset | ( | bool | is_union, |
| int & | offset ) |
Definition at line 56 of file symbol_variable.cc.
References array_dimensions, array_elements, offset, pad, set_offset(), and type.
Referenced by set_offset().
| string bsl::SymbolVariable::value_str | ( | ) | const |
Definition at line 149 of file symbol_variable.cc.
References blender::gpu::shader::metadata::assert, bsl::constexpr_to_string(), is_constexpr, value, and value_str().
Referenced by bsl::SymbolTable::expr_to_string(), and value_str().
| int8_t bsl::SymbolVariable::array_dimensions = 0 |
Definition at line 58 of file symbol_variable.hh.
Referenced by set_offset(), and SymbolVariable().
| int bsl::SymbolVariable::array_elements = 0 |
Definition at line 62 of file symbol_variable.hh.
Referenced by set_offset().
| int bsl::SymbolVariable::bit_length = 0 |
Definition at line 67 of file symbol_variable.hh.
| int bsl::SymbolVariable::bit_offset = 0 |
Definition at line 66 of file symbol_variable.hh.
| ast::Expr bsl::SymbolVariable::capacity_value = {} |
Definition at line 49 of file symbol_variable.hh.
| ast::Expr bsl::SymbolVariable::condition = {} |
Definition at line 51 of file symbol_variable.hh.
Referenced by bsl::SymbolParser::parse_function_arguments().
| bool bsl::SymbolVariable::is_bitfield = false |
Definition at line 69 of file symbol_variable.hh.
Referenced by SymbolVariable().
| bool bsl::SymbolVariable::is_compilation_const = false |
Definition at line 75 of file symbol_variable.hh.
Referenced by bsl::SymbolTable::expr_to_string(), and SymbolVariable().
| bool bsl::SymbolVariable::is_const = false |
Definition at line 74 of file symbol_variable.hh.
| bool bsl::SymbolVariable::is_constexpr = false |
Definition at line 72 of file symbol_variable.hh.
Referenced by bsl::SymbolTable::expr_to_string(), bsl::SymbolParser::parse_template_arguments(), and value_str().
| bool bsl::SymbolVariable::is_error = false |
Definition at line 71 of file symbol_variable.hh.
Referenced by bsl::SymbolTable::expr_to_string().
| bool bsl::SymbolVariable::is_macro = false |
Definition at line 73 of file symbol_variable.hh.
Referenced by bsl::SymbolParser::parse_preprocessor().
| bool bsl::SymbolVariable::is_static = false |
Definition at line 70 of file symbol_variable.hh.
Referenced by SymbolVariable(), and SymbolVariable().
| int bsl::SymbolVariable::offset = 0 |
Definition at line 64 of file symbol_variable.hh.
Referenced by bsl::SymbolParser::parse_var_decl(), and set_offset().
| ast::Expr bsl::SymbolVariable::reference_value = {} |
Definition at line 47 of file symbol_variable.hh.
| ResourceType bsl::SymbolVariable::res_type = ResourceType::NONE |
Definition at line 56 of file symbol_variable.hh.
| SymbolClass* bsl::SymbolVariable::type = nullptr |
Definition at line 43 of file symbol_variable.hh.
Referenced by bsl::SymbolTable::expr_to_string(), set_offset(), SymbolVariable(), SymbolVariable(), and SymbolVariable().
| ConstexprValue bsl::SymbolVariable::value = ConstexprError(0) |
Definition at line 54 of file symbol_variable.hh.
Referenced by bsl::SymbolParser::parse_template_arguments(), and value_str().