| 3046 | } |
| 3047 | |
| 3048 | void ExpressionCompiler::setLValueFromDeclaration(Declaration const& _declaration, Expression const& _expression) |
| 3049 | { |
| 3050 | if (m_context.isLocalVariable(&_declaration)) |
| 3051 | setLValue<StackVariable>(_expression, dynamic_cast<VariableDeclaration const&>(_declaration)); |
| 3052 | else if (m_context.isStateVariable(&_declaration)) |
| 3053 | { |
| 3054 | if (dynamic_cast<VariableDeclaration const&>(_declaration).referenceLocation() == VariableDeclaration::Location::Transient) |
| 3055 | setLValue<TransientStorageItem>(_expression, dynamic_cast<VariableDeclaration const&>(_declaration)); |
| 3056 | else |
| 3057 | setLValue<StorageItem>(_expression, dynamic_cast<VariableDeclaration const&>(_declaration)); |
| 3058 | } |
| 3059 | else |
| 3060 | solAssert(false, "Identifier type not supported or identifier not found."); |
| 3061 | } |
| 3062 | |
| 3063 | void ExpressionCompiler::setLValueToStorageItem(Expression const& _expression) |
| 3064 | { |
nothing calls this directly
no test coverage detected