-val_t mmloader___ToolContext___paths(val_t self) {
- struct trace_t trace = {NULL, NULL, 52, LOCATE_mmloader___ToolContext___paths};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____paths( self) /*ToolContext::_paths*/;
-}
-val_t mmloader___ToolContext___option_context(val_t self) {
- struct trace_t trace = {NULL, NULL, 58, LOCATE_mmloader___ToolContext___option_context};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____option_context( self) /*ToolContext::_option_context*/;
-}
-val_t mmloader___ToolContext___opt_warn(val_t self) {
- struct trace_t trace = {NULL, NULL, 61, LOCATE_mmloader___ToolContext___opt_warn};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_warn( self) /*ToolContext::_opt_warn*/;
-}
-val_t mmloader___ToolContext___opt_path(val_t self) {
- struct trace_t trace = {NULL, NULL, 64, LOCATE_mmloader___ToolContext___opt_path};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_path( self) /*ToolContext::_opt_path*/;
-}
-val_t mmloader___ToolContext___opt_log(val_t self) {
- struct trace_t trace = {NULL, NULL, 67, LOCATE_mmloader___ToolContext___opt_log};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_log( self) /*ToolContext::_opt_log*/;
-}
-val_t mmloader___ToolContext___opt_only_metamodel(val_t self) {
- struct trace_t trace = {NULL, NULL, 70, LOCATE_mmloader___ToolContext___opt_only_metamodel};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_only_metamodel( self) /*ToolContext::_opt_only_metamodel*/;
-}
-val_t mmloader___ToolContext___opt_only_parse(val_t self) {
- struct trace_t trace = {NULL, NULL, 73, LOCATE_mmloader___ToolContext___opt_only_parse};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_only_parse( self) /*ToolContext::_opt_only_parse*/;
-}
-val_t mmloader___ToolContext___opt_help(val_t self) {
- struct trace_t trace = {NULL, NULL, 76, LOCATE_mmloader___ToolContext___opt_help};
- val_t *variable = NULL;
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- tracehead = trace.prev;
- return ATTR_mmloader___ToolContext____opt_help( self) /*ToolContext::_opt_help*/;
-}
-void mmloader___ToolContext___init(val_t self, int* init_table) {
- struct trace_t trace = {NULL, NULL, 79, LOCATE_mmloader___ToolContext___init};
- val_t variable[10];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_ToolContext].i]) return;
- /* Register variable[1]: Method return value and escape marker */
- CALL_abstractmetamodel___MMContext___init(variable[0])(variable[0], init_table /*YYY*/) /*MMContext::init*/;
- /* Register variable[2]: Result */
- variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
- variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(6)) /*new Array[Option]*/ /* Ensure var: Literal array*/;
- /* Register variable[4]: Result */
- variable[4] = CALL_mmloader___ToolContext___opt_warn(variable[0])(variable[0]) /*ToolContext::opt_warn*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
- /* Register variable[5]: Result */
- variable[5] = CALL_mmloader___ToolContext___opt_path(variable[0])(variable[0]) /*ToolContext::opt_path*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[5]) /*AbstractArray::add*/;
- /* Register variable[6]: Result */
- variable[6] = CALL_mmloader___ToolContext___opt_log(variable[0])(variable[0]) /*ToolContext::opt_log*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[6]) /*AbstractArray::add*/;
- /* Register variable[7]: Result */
- variable[7] = CALL_mmloader___ToolContext___opt_only_parse(variable[0])(variable[0]) /*ToolContext::opt_only_parse*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[7]) /*AbstractArray::add*/;
- /* Register variable[8]: Result */
- variable[8] = CALL_mmloader___ToolContext___opt_only_metamodel(variable[0])(variable[0]) /*ToolContext::opt_only_metamodel*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[8]) /*AbstractArray::add*/;
- /* Register variable[9]: Result */
- variable[9] = CALL_mmloader___ToolContext___opt_help(variable[0])(variable[0]) /*ToolContext::opt_help*/;
- CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[9]) /*AbstractArray::add*/;
- /* Register variable[3]: Result */
- CALL_opts___OptionContext___add_option(variable[2])(variable[2], variable[3]) /*OptionContext::add_option*/;
- return_label6: while(false);
- init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_ToolContext].i] = 1;
- tracehead = trace.prev;
- return;
-}
-void mmloader___ToolContext___process_options(val_t self) {
- struct trace_t trace = {NULL, NULL, 85, LOCATE_mmloader___ToolContext___process_options};
- static val_t once_value_8; static int once_bool_8; /* Once value for variable[3]*/
- static val_t once_value_9 = NIT_NULL; /* Once value for string variable[3]*/
- static val_t once_value_10; static int once_bool_10; /* Once value for variable[3]*/
- static val_t once_value_11 = NIT_NULL; /* Once value for string variable[3]*/
- static val_t once_value_12 = NIT_NULL; /* Once value for string variable[5]*/
- static val_t once_value_13 = NIT_NULL; /* Once value for string variable[5]*/
- static val_t once_value_14 = NIT_NULL; /* Once value for string variable[5]*/
- static val_t once_value_15 = NIT_NULL; /* Once value for string variable[5]*/
- val_t variable[6];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_mmloader;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
- /* Register variable[3]: Result */
- variable[3] = CALL_string___Object___args(variable[0])(variable[0]) /*Object::args*/;
- CALL_opts___OptionContext___parse(variable[2])(variable[2], variable[3]) /*OptionContext::parse*/;
- /* Register variable[2]: Result */
- variable[2] = NEW_Array_array___Array___init() /*new Array[String]*/;
- ATTR_mmloader___ToolContext____paths(variable[0]) /*ToolContext::_paths*/ = variable[2];
- /* Register variable[2]: Result */
- variable[2] = CALL_mmloader___ToolContext___paths(variable[0])(variable[0]) /*ToolContext::paths*/;
- /* Register variable[3]: Result */
- variable[3] = CALL_mmloader___ToolContext___opt_path(variable[0])(variable[0]) /*ToolContext::opt_path*/;
- /* Register variable[3]: Result */
- variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
- CALL_abstract_collection___IndexedCollection___append(variable[2])(variable[2], variable[3]) /*IndexedCollection::append*/;
- /* Register variable[2]: Local variable */
- /* Register variable[3]: Once expression result */
- if (once_bool_8) variable[3] = once_value_8;
- else {
- /* Register variable[3]: Once String constant */
- if (once_value_9 != NIT_NULL) variable[3] = once_value_9;
- else {
- variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_PATH"), TAG_Int(8)) /*new String*/;
- once_value_9 = variable[3];
- }
- /* Register variable[3]: Result */
- /* Register variable[3]: Result */
- variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
- /* Register variable[3]: Result */
- variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
- once_value_8 = variable[3];
- once_bool_8 = true;