| 795 | } |
| 796 | |
| 797 | void addModuleOption ( Module * mod, char * option, Type type, Context * context, LineInfoArg * at ) { |
| 798 | if ( !mod ) context->throw_error_at(at, "expecting module"); |
| 799 | if ( !option ) context->throw_error_at(at, "expecting option name"); |
| 800 | if ( mod->getOptionType(option) != Type::none ) context->throw_error_at(at, "option %s already exists", option); |
| 801 | mod->options[option] = type; |
| 802 | } |
| 803 | |
| 804 | TypeDeclPtr getUnderlyingValueType ( TypeDecl * type, Context * context, LineInfoArg * at ) { |
| 805 | if ( !type ) context->throw_error_at(at, "expecting type"); |
nothing calls this directly
no test coverage detected