From 42b615d6dacaf42675570d5163014649668e17c9 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 21 Nov 2017 17:10:17 -0500 Subject: [PATCH] tests: fix tests for doc commands Signed-off-by: Alexandre Terrasa --- .../test_commands_json.sav/test_cmd_mentities.res | 14 + .../test_commands_json.sav/test_cmd_search.res | 4 +- src/doc/commands/tests/test_commands_model.nit | 2 +- src/doc/commands/tests/test_commands_parser.nit | 5 +- src/model/model_collect.nit | 2 + .../test_classdefs_to_full_json.res | 86 ++++ .../test_classes_to_full_json.res | 77 ++++ .../test_groups_to_full_json.res | 29 ++ .../test_modules_to_full_json.res | 36 ++ .../test_packages_to_full_json.res | 2 + .../test_propdefs_to_full_json.res | 442 ++++++++++++++++++++ .../test_props_to_full_json.res | 162 +++++++ .../test_model_json.sav/test_refs_to_full_json.res | 2 +- 13 files changed, 856 insertions(+), 7 deletions(-) diff --git a/src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res b/src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res index 6a09f6b..866e31f 100644 --- a/src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res +++ b/src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res @@ -106,6 +106,20 @@ "file": "test_location" } }, { + "name": "game_examples", + "class_name": "MModule", + "full_name": "test_prog::game_examples", + "mdoc": null, + "visibility": "public", + "modifiers": ["module"], + "location": { + "column_end": 3, + "column_start": 1, + "line_end": 32, + "line_start": 15, + "file": "test_location" + } + }, { "name": "platform", "class_name": "MModule", "full_name": "test_prog::platform", diff --git a/src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res b/src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res index 95bf855..d84a73b 100644 --- a/src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res +++ b/src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res @@ -235,7 +235,7 @@ } }], "page": 1, - "count": 106, + "count": 113, "limit": 10, - "max": 10 + "max": 11 } diff --git a/src/doc/commands/tests/test_commands_model.nit b/src/doc/commands/tests/test_commands_model.nit index 9cdfc96..246d882 100644 --- a/src/doc/commands/tests/test_commands_model.nit +++ b/src/doc/commands/tests/test_commands_model.nit @@ -169,7 +169,7 @@ class TestCommandsModel var cmd = new CmdModelEntities(test_view, kind = "modules") var res = cmd.init_command assert res isa CmdSuccess - assert cmd.results.as(not null).length == 9 + assert cmd.results.as(not null).length == 10 end fun test_cmd_results_random is test do diff --git a/src/doc/commands/tests/test_commands_parser.nit b/src/doc/commands/tests/test_commands_parser.nit index e58a157..1a18188 100644 --- a/src/doc/commands/tests/test_commands_parser.nit +++ b/src/doc/commands/tests/test_commands_parser.nit @@ -71,7 +71,7 @@ class TestCommandsParser var cmd = parser.parse("descendants: Object") assert cmd isa CmdDescendants assert parser.error == null - assert cmd.results.as(not null).length == 19 + assert cmd.results.as(not null).length == 20 end fun test_cmd_parser_descendants_without_children is test do @@ -79,8 +79,7 @@ class TestCommandsParser var cmd = parser.parse("descendants: Object | children: false") assert cmd isa CmdDescendants assert parser.error == null - print cmd.results.as(not null) - assert cmd.results.as(not null).length == 7 + assert cmd.results.as(not null).length == 8 end # CmdSearch diff --git a/src/model/model_collect.nit b/src/model/model_collect.nit index 61d03a0..8da799a 100644 --- a/src/model/model_collect.nit +++ b/src/model/model_collect.nit @@ -568,6 +568,7 @@ redef class MClass # This method uses a flattened hierarchy containing all the mclassdefs. redef fun collect_parents(view) do var res = new HashSet[MENTITY] + if not view.mainmodule.flatten_mclass_hierarchy.has(self) then return res for mclass in in_hierarchy(view.mainmodule).direct_greaters do if mclass == self or not view.accept_mentity(mclass) then continue res.add mclass @@ -580,6 +581,7 @@ redef class MClass # This method uses a flattened hierarchy containing all the mclassdefs. redef fun collect_children(view) do var res = new HashSet[MENTITY] + if not view.mainmodule.flatten_mclass_hierarchy.has(self) then return res for mclass in in_hierarchy(view.mainmodule).direct_smallers do if mclass == self or not view.accept_mentity(mclass) then continue res.add mclass diff --git a/src/model/test_model_json.sav/test_classdefs_to_full_json.res b/src/model/test_model_json.sav/test_classdefs_to_full_json.res index 96d1691..bf731cd 100644 --- a/src/model/test_model_json.sav/test_classdefs_to_full_json.res +++ b/src/model/test_model_json.sav/test_classdefs_to_full_json.res @@ -1297,6 +1297,92 @@ "redef_mpropdefs": [] } { + "name": "MyGame", + "class_name": "MClassDef", + "full_name": "test_prog$MyGame", + "mdoc": { + "content": "This is an example of how to implement the Game interface", + "location": { + "column_end": 0, + "column_start": 1, + "line_end": 20, + "line_start": 19, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["public", "class"], + "location": { + "column_end": 3, + "column_start": 1, + "line_end": 32, + "line_start": 19, + "file": "test_location" + }, + "is_intro": true, + "mparameters": [], + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mclass": { + "full_name": "test_prog::MyGame" + }, + "mpropdefs": [{ + "full_name": "test_prog$MyGame$_computer_characters" + }, { + "full_name": "test_prog$MyGame$_player_characters" + }, { + "full_name": "test_prog$MyGame$Game::computer_characters" + }, { + "full_name": "test_prog$MyGame$computer_characters=" + }, { + "full_name": "test_prog$MyGame$Game::pause_game" + }, { + "full_name": "test_prog$MyGame$Game::player_characters" + }, { + "full_name": "test_prog$MyGame$player_characters=" + }, { + "full_name": "test_prog$MyGame$Game::start_game" + }, { + "full_name": "test_prog$MyGame$Game::stop_game" + }], + "intro_mproperties": [{ + "full_name": "test_prog::game_examples::MyGame::_computer_characters" + }, { + "full_name": "test_prog::game_examples::MyGame::_player_characters" + }, { + "full_name": "test_prog::MyGame::computer_characters=" + }, { + "full_name": "test_prog::MyGame::player_characters=" + }], + "intro": { + "full_name": "test_prog$MyGame" + }, + "mpackage": { + "full_name": "test_prog" + }, + "intro_mpropdefs": [{ + "full_name": "test_prog$MyGame$_computer_characters" + }, { + "full_name": "test_prog$MyGame$_player_characters" + }, { + "full_name": "test_prog$MyGame$computer_characters=" + }, { + "full_name": "test_prog$MyGame$player_characters=" + }], + "redef_mpropdefs": [{ + "full_name": "test_prog$MyGame$Game::computer_characters" + }, { + "full_name": "test_prog$MyGame$Game::pause_game" + }, { + "full_name": "test_prog$MyGame$Game::player_characters" + }, { + "full_name": "test_prog$MyGame$Game::start_game" + }, { + "full_name": "test_prog$MyGame$Game::stop_game" + }] +} +{ "name": "Starter", "class_name": "MClassDef", "full_name": "test_prog$Starter", diff --git a/src/model/test_model_json.sav/test_classes_to_full_json.res b/src/model/test_model_json.sav/test_classes_to_full_json.res index 19495e1..dc7f14b 100644 --- a/src/model/test_model_json.sav/test_classes_to_full_json.res +++ b/src/model/test_model_json.sav/test_classes_to_full_json.res @@ -1333,6 +1333,83 @@ }] } { + "name": "MyGame", + "class_name": "MClass", + "full_name": "test_prog::MyGame", + "mdoc": { + "content": "This is an example of how to implement the Game interface", + "location": { + "column_end": 0, + "column_start": 1, + "line_end": 20, + "line_start": 19, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["public", "class"], + "location": { + "column_end": 3, + "column_start": 1, + "line_end": 32, + "line_start": 19, + "file": "test_location" + }, + "mparameters": [], + "intro": { + "full_name": "test_prog$MyGame" + }, + "intro_mmodule": { + "full_name": "test_prog::game_examples" + }, + "mpackage": { + "full_name": "test_prog" + }, + "mclassdefs": [{ + "full_name": "test_prog$MyGame" + }], + "all_mproperties": [{ + "full_name": "test_prog::game_examples::MyGame::_computer_characters" + }, { + "full_name": "test_prog::game_examples::MyGame::_player_characters" + }, { + "full_name": "test_prog::Game::computer_characters" + }, { + "full_name": "test_prog::MyGame::computer_characters=" + }, { + "full_name": "test_prog::Game::pause_game" + }, { + "full_name": "test_prog::Game::player_characters" + }, { + "full_name": "test_prog::MyGame::player_characters=" + }, { + "full_name": "test_prog::Game::start_game" + }, { + "full_name": "test_prog::Game::stop_game" + }], + "intro_mproperties": [{ + "full_name": "test_prog::game_examples::MyGame::_computer_characters" + }, { + "full_name": "test_prog::game_examples::MyGame::_player_characters" + }, { + "full_name": "test_prog::MyGame::computer_characters=" + }, { + "full_name": "test_prog::MyGame::player_characters=" + }], + "redef_mproperties": [{ + "full_name": "test_prog::Game::computer_characters" + }, { + "full_name": "test_prog::Game::pause_game" + }, { + "full_name": "test_prog::Game::player_characters" + }, { + "full_name": "test_prog::Game::start_game" + }, { + "full_name": "test_prog::Game::stop_game" + }], + "parents": [] +} +{ "name": "Starter", "class_name": "MClass", "full_name": "test_prog::Starter", diff --git a/src/model/test_model_json.sav/test_groups_to_full_json.res b/src/model/test_model_json.sav/test_groups_to_full_json.res index 3e9fd9f..ee5e331 100644 --- a/src/model/test_model_json.sav/test_groups_to_full_json.res +++ b/src/model/test_model_json.sav/test_groups_to_full_json.res @@ -33,6 +33,8 @@ "full_name": "test_prog::test_prog" }], "mgroups": [{ + "full_name": "test_prog>examples>" + }, { "full_name": "test_prog>game>" }, { "full_name": "test_prog>platform>" @@ -41,6 +43,33 @@ }] } { + "name": "examples", + "class_name": "MGroup", + "full_name": "test_prog>examples>", + "mdoc": null, + "visibility": "public", + "modifiers": ["group"], + "location": { + "column_end": 0, + "column_start": 0, + "line_end": 0, + "line_start": 0, + "file": "test_location" + }, + "is_root": false, + "mpackage": { + "full_name": "test_prog" + }, + "default_mmodule": null, + "parent": { + "full_name": "test_prog>" + }, + "mmodules": [{ + "full_name": "test_prog::game_examples" + }], + "mgroups": [] +} +{ "name": "game", "class_name": "MGroup", "full_name": "test_prog>game>", diff --git a/src/model/test_model_json.sav/test_modules_to_full_json.res b/src/model/test_model_json.sav/test_modules_to_full_json.res index e0c653a..d117c08 100644 --- a/src/model/test_model_json.sav/test_modules_to_full_json.res +++ b/src/model/test_model_json.sav/test_modules_to_full_json.res @@ -1,4 +1,38 @@ { + "name": "game_examples", + "class_name": "MModule", + "full_name": "test_prog::game_examples", + "mdoc": null, + "visibility": "public", + "modifiers": ["module"], + "location": { + "column_end": 3, + "column_start": 1, + "line_end": 32, + "line_start": 15, + "file": "test_location" + }, + "mpackage": { + "full_name": "test_prog" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "intro_mclasses": [{ + "full_name": "test_prog::MyGame" + }], + "mclassdefs": [{ + "full_name": "test_prog$MyGame" + }], + "intro_mclassdefs": [{ + "full_name": "test_prog$MyGame" + }], + "redef_mclassdefs": [], + "imports": [{ + "full_name": "test_prog::game" + }] +} +{ "name": "excluded", "class_name": "MModule", "full_name": "excluded::excluded", @@ -470,5 +504,7 @@ "redef_mclassdefs": [], "imports": [{ "full_name": "test_prog::test_prog" + }, { + "full_name": "test_prog::game_examples" }] } diff --git a/src/model/test_model_json.sav/test_packages_to_full_json.res b/src/model/test_model_json.sav/test_packages_to_full_json.res index ef7ced3..ca0a550 100644 --- a/src/model/test_model_json.sav/test_packages_to_full_json.res +++ b/src/model/test_model_json.sav/test_packages_to_full_json.res @@ -25,6 +25,8 @@ "full_name": "test_prog>" }, "mgroups": [{ + "full_name": "test_prog>examples>" + }, { "full_name": "test_prog>game>" }, { "full_name": "test_prog>platform>" diff --git a/src/model/test_model_json.sav/test_propdefs_to_full_json.res b/src/model/test_model_json.sav/test_propdefs_to_full_json.res index 426bc6c..e4b178a 100644 --- a/src/model/test_model_json.sav/test_propdefs_to_full_json.res +++ b/src/model/test_model_json.sav/test_propdefs_to_full_json.res @@ -3735,6 +3735,60 @@ } } { + "name": "player_characters", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$Game::player_characters", + "mdoc": { + "content": "Characters played by human players.", + "location": { + "column_end": 0, + "column_start": 2, + "line_end": 26, + "line_start": 25, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["redef", "fun"], + "location": { + "column_end": 50, + "column_start": 2, + "line_end": 23, + "line_start": 23, + "file": "test_location" + }, + "is_intro": false, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::Game::player_characters" + }, + "intro": { + "full_name": "test_prog$Game$player_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$Game" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 0, + "mparams": [], + "return_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + }, + "vararg_rank": -1 + } +} +{ "name": "computer_characters", "class_name": "MMethodDef", "full_name": "test_prog$Game$computer_characters", @@ -3789,6 +3843,60 @@ } } { + "name": "computer_characters", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$Game::computer_characters", + "mdoc": { + "content": "Characters players by computer.", + "location": { + "column_end": 0, + "column_start": 2, + "line_end": 29, + "line_start": 28, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["redef", "fun"], + "location": { + "column_end": 52, + "column_start": 2, + "line_end": 25, + "line_start": 25, + "file": "test_location" + }, + "is_intro": false, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::Game::computer_characters" + }, + "intro": { + "full_name": "test_prog$Game$computer_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$Game" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 0, + "mparams": [], + "return_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + }, + "vararg_rank": -1 + } +} +{ "name": "start_game", "class_name": "MMethodDef", "full_name": "test_prog$Game$start_game", @@ -3841,6 +3949,58 @@ } } { + "name": "start_game", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$Game::start_game", + "mdoc": { + "content": "Start the game.\n\nYou have to implement that method!", + "location": { + "column_end": 0, + "column_start": 2, + "line_end": 34, + "line_start": 31, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["redef", "fun"], + "location": { + "column_end": 28, + "column_start": 2, + "line_end": 27, + "line_start": 27, + "file": "test_location" + }, + "is_intro": false, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::Game::start_game" + }, + "intro": { + "full_name": "test_prog$Game$start_game" + }, + "intro_mclassdef": { + "full_name": "test_prog$Game" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 0, + "mparams": [], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ "name": "pause_game", "class_name": "MMethodDef", "full_name": "test_prog$Game$pause_game", @@ -3893,6 +4053,58 @@ } } { + "name": "pause_game", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$Game::pause_game", + "mdoc": { + "content": "Pause the game.\n\nYou have to implement that method!", + "location": { + "column_end": 0, + "column_start": 2, + "line_end": 39, + "line_start": 36, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["redef", "fun"], + "location": { + "column_end": 28, + "column_start": 2, + "line_end": 29, + "line_start": 29, + "file": "test_location" + }, + "is_intro": false, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::Game::pause_game" + }, + "intro": { + "full_name": "test_prog$Game$pause_game" + }, + "intro_mclassdef": { + "full_name": "test_prog$Game" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 0, + "mparams": [], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ "name": "stop_game", "class_name": "MMethodDef", "full_name": "test_prog$Game$stop_game", @@ -3945,6 +4157,236 @@ } } { + "name": "stop_game", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$Game::stop_game", + "mdoc": { + "content": "Stop the game.\n\nYou have to implement that method!", + "location": { + "column_end": 0, + "column_start": 2, + "line_end": 44, + "line_start": 41, + "file": "test_location" + } + }, + "visibility": "public", + "modifiers": ["redef", "fun"], + "location": { + "column_end": 27, + "column_start": 2, + "line_end": 31, + "line_start": 31, + "file": "test_location" + }, + "is_intro": false, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::Game::stop_game" + }, + "intro": { + "full_name": "test_prog$Game$stop_game" + }, + "intro_mclassdef": { + "full_name": "test_prog$Game" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 0, + "mparams": [], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ + "name": "_player_characters", + "class_name": "MAttributeDef", + "full_name": "test_prog$MyGame$_player_characters", + "mdoc": null, + "visibility": "private", + "modifiers": ["private", "var"], + "location": { + "column_end": 50, + "column_start": 2, + "line_end": 23, + "line_start": 23, + "file": "test_location" + }, + "is_intro": true, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::game_examples::MyGame::_player_characters" + }, + "intro": { + "full_name": "test_prog$MyGame$_player_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "static_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } +} +{ + "name": "player_characters=", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$player_characters=", + "mdoc": null, + "visibility": "protected", + "modifiers": ["protected", "fun"], + "location": { + "column_end": 50, + "column_start": 2, + "line_end": 23, + "line_start": 23, + "file": "test_location" + }, + "is_intro": true, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::MyGame::player_characters=" + }, + "intro": { + "full_name": "test_prog$MyGame$player_characters=" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 1, + "mparams": [{ + "is_vararg": false, + "name": "player_characters", + "mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } + }], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ + "name": "_computer_characters", + "class_name": "MAttributeDef", + "full_name": "test_prog$MyGame$_computer_characters", + "mdoc": null, + "visibility": "private", + "modifiers": ["private", "var"], + "location": { + "column_end": 52, + "column_start": 2, + "line_end": 25, + "line_start": 25, + "file": "test_location" + }, + "is_intro": true, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::game_examples::MyGame::_computer_characters" + }, + "intro": { + "full_name": "test_prog$MyGame$_computer_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "static_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } +} +{ + "name": "computer_characters=", + "class_name": "MMethodDef", + "full_name": "test_prog$MyGame$computer_characters=", + "mdoc": null, + "visibility": "protected", + "modifiers": ["protected", "fun"], + "location": { + "column_end": 52, + "column_start": 2, + "line_end": 25, + "line_start": 25, + "file": "test_location" + }, + "is_intro": true, + "mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mproperty": { + "full_name": "test_prog::MyGame::computer_characters=" + }, + "intro": { + "full_name": "test_prog$MyGame$computer_characters=" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mmodule": { + "full_name": "test_prog::game_examples" + }, + "mgroup": { + "full_name": "test_prog>examples>" + }, + "mpackage": { + "full_name": "test_prog" + }, + "msignature": { + "arity": 1, + "mparams": [{ + "is_vararg": false, + "name": "computer_characters", + "mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } + }], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ "name": "start", "class_name": "MMethodDef", "full_name": "test_prog$Starter$start", diff --git a/src/model/test_model_json.sav/test_props_to_full_json.res b/src/model/test_model_json.sav/test_props_to_full_json.res index 6757986..f2b22b3 100644 --- a/src/model/test_model_json.sav/test_props_to_full_json.res +++ b/src/model/test_model_json.sav/test_props_to_full_json.res @@ -2849,6 +2849,8 @@ }, "mpropdefs": [{ "full_name": "test_prog$Game$player_characters" + }, { + "full_name": "test_prog$MyGame$Game::player_characters" }], "intro_mclass": { "full_name": "test_prog::Game" @@ -2897,6 +2899,8 @@ }, "mpropdefs": [{ "full_name": "test_prog$Game$computer_characters" + }, { + "full_name": "test_prog$MyGame$Game::computer_characters" }], "intro_mclass": { "full_name": "test_prog::Game" @@ -2945,6 +2949,8 @@ }, "mpropdefs": [{ "full_name": "test_prog$Game$start_game" + }, { + "full_name": "test_prog$MyGame$Game::start_game" }], "intro_mclass": { "full_name": "test_prog::Game" @@ -2991,6 +2997,8 @@ }, "mpropdefs": [{ "full_name": "test_prog$Game$pause_game" + }, { + "full_name": "test_prog$MyGame$Game::pause_game" }], "intro_mclass": { "full_name": "test_prog::Game" @@ -3037,6 +3045,8 @@ }, "mpropdefs": [{ "full_name": "test_prog$Game$stop_game" + }, { + "full_name": "test_prog$MyGame$Game::stop_game" }], "intro_mclass": { "full_name": "test_prog::Game" @@ -3053,6 +3063,158 @@ } } { + "name": "_player_characters", + "class_name": "MAttribute", + "full_name": "test_prog::game_examples::MyGame::_player_characters", + "mdoc": null, + "visibility": "private", + "modifiers": ["private", "var"], + "location": { + "column_end": 50, + "column_start": 2, + "line_end": 23, + "line_start": 23, + "file": "test_location" + }, + "intro": { + "full_name": "test_prog$MyGame$_player_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mpropdefs": [{ + "full_name": "test_prog$MyGame$_player_characters" + }], + "intro_mclass": { + "full_name": "test_prog::MyGame" + }, + "mpackage": { + "full_name": "test_prog" + }, + "static_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } +} +{ + "name": "player_characters=", + "class_name": "MMethod", + "full_name": "test_prog::MyGame::player_characters=", + "mdoc": null, + "visibility": "protected", + "modifiers": ["protected", "fun"], + "location": { + "column_end": 50, + "column_start": 2, + "line_end": 23, + "line_start": 23, + "file": "test_location" + }, + "intro": { + "full_name": "test_prog$MyGame$player_characters=" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mpropdefs": [{ + "full_name": "test_prog$MyGame$player_characters=" + }], + "intro_mclass": { + "full_name": "test_prog::MyGame" + }, + "mpackage": { + "full_name": "test_prog" + }, + "is_init": false, + "msignature": { + "arity": 1, + "mparams": [{ + "is_vararg": false, + "name": "player_characters", + "mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } + }], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ + "name": "_computer_characters", + "class_name": "MAttribute", + "full_name": "test_prog::game_examples::MyGame::_computer_characters", + "mdoc": null, + "visibility": "private", + "modifiers": ["private", "var"], + "location": { + "column_end": 52, + "column_start": 2, + "line_end": 25, + "line_start": 25, + "file": "test_location" + }, + "intro": { + "full_name": "test_prog$MyGame$_computer_characters" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mpropdefs": [{ + "full_name": "test_prog$MyGame$_computer_characters" + }], + "intro_mclass": { + "full_name": "test_prog::MyGame" + }, + "mpackage": { + "full_name": "test_prog" + }, + "static_mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } +} +{ + "name": "computer_characters=", + "class_name": "MMethod", + "full_name": "test_prog::MyGame::computer_characters=", + "mdoc": null, + "visibility": "protected", + "modifiers": ["protected", "fun"], + "location": { + "column_end": 52, + "column_start": 2, + "line_end": 25, + "line_start": 25, + "file": "test_location" + }, + "intro": { + "full_name": "test_prog$MyGame$computer_characters=" + }, + "intro_mclassdef": { + "full_name": "test_prog$MyGame" + }, + "mpropdefs": [{ + "full_name": "test_prog$MyGame$computer_characters=" + }], + "intro_mclass": { + "full_name": "test_prog::MyGame" + }, + "mpackage": { + "full_name": "test_prog" + }, + "is_init": false, + "msignature": { + "arity": 1, + "mparams": [{ + "is_vararg": false, + "name": "computer_characters", + "mtype": { + "full_name": "test_prog::List[test_prog::Character]" + } + }], + "return_mtype": null, + "vararg_rank": -1 + } +} +{ "name": "start", "class_name": "MMethod", "full_name": "test_prog::Starter::start", diff --git a/src/model/test_model_json.sav/test_refs_to_full_json.res b/src/model/test_model_json.sav/test_refs_to_full_json.res index 60e70df..b5e00b5 100644 --- a/src/model/test_model_json.sav/test_refs_to_full_json.res +++ b/src/model/test_model_json.sav/test_refs_to_full_json.res @@ -2,7 +2,7 @@ "full_name": "test_prog" } { - "full_name": "excluded::excluded" + "full_name": "test_prog::game_examples" } { "full_name": "test_prog::Object" -- 1.7.9.5