| 152 | } |
| 153 | |
| 154 | bool addModuleVariable ( Module * module, VariablePtr & _var, Context * context, LineInfoArg * lineInfo ) { |
| 155 | if ( !module ) context->throw_error_at(lineInfo, "expecting module, not null"); |
| 156 | VariablePtr var = das::move(_var); |
| 157 | return module->addVariable(das::move(var), true); |
| 158 | } |
| 159 | |
| 160 | VariablePtr findModuleVariable ( Module * module, const char * name ) { |
| 161 | return name ? module->findVariable(name) : nullptr; |
nothing calls this directly
no test coverage detected