Blender V5.3
bsl::ExpressionResult Struct Reference

#include <type_checker.hh>

Public Member Functions

 ExpressionResult (SymbolVariable *var)
 ExpressionResult (SymbolClass *cls, ExprFlag flags=ExprFlag::IsNone)
 ExpressionResult (SymbolClass *cls, ConstexprValue value, bool is_temporary=true)
bool is_constexpr () const
bool is_constant () const

Public Attributes

SymbolClass * type
ConstexprValue value = ConstexprError(0)
uint8_t array_dim = 0
ExprFlag flags = ExprFlag::IsNone
bool is_temporary = false

Detailed Description

Definition at line 23 of file type_checker.hh.

Constructor & Destructor Documentation

◆ ExpressionResult() [1/3]

bsl::ExpressionResult::ExpressionResult ( SymbolVariable * var)
inline

◆ ExpressionResult() [2/3]

bsl::ExpressionResult::ExpressionResult ( SymbolClass * cls,
ExprFlag flags = ExprFlag::IsNone )
inline

Definition at line 42 of file type_checker.hh.

References flags, is_temporary, bsl::IsNone, blender::true, and type.

◆ ExpressionResult() [3/3]

bsl::ExpressionResult::ExpressionResult ( SymbolClass * cls,
ConstexprValue value,
bool is_temporary = true )
inline

Definition at line 47 of file type_checker.hh.

References flags, is_temporary, bsl::IsConstant, bsl::IsConstexpr, type, and value.

Member Function Documentation

◆ is_constant()

bool bsl::ExpressionResult::is_constant ( ) const
inline

Definition at line 60 of file type_checker.hh.

References flags, and bsl::IsConstant.

◆ is_constexpr()

bool bsl::ExpressionResult::is_constexpr ( ) const
inline

Definition at line 55 of file type_checker.hh.

References flags, and bsl::IsConstexpr.

Referenced by ExpressionResult(), and bsl::ExpressionTypeParser::identifier().

Member Data Documentation

◆ array_dim

◆ flags

◆ is_temporary

bool bsl::ExpressionResult::is_temporary = false

Definition at line 31 of file type_checker.hh.

Referenced by ExpressionResult(), and ExpressionResult().

◆ type

◆ value


The documentation for this struct was generated from the following file: