doc/commands: fix commands json tests after update
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 25 Oct 2017 19:30:55 +0000 (15:30 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 18 Dec 2017 18:59:12 +0000 (13:59 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/commands/tests/test_commands_json.sav/test_cmd_ancestors.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_call.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_children.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_descendants.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_entity.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_features.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_lin.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_mentities.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_parents.res
src/doc/commands/tests/test_commands_json.sav/test_cmd_search.res

index fcf2f01..26a3c60 100644 (file)
@@ -1,28 +1,19 @@
 {
        "results": [{
                "name": "Object",
+               "synopsis": "Root of everything.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Object",
-               "mdoc": {
-                       "content": "Root of everything.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 21,
-                               "line_start": 20,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["interface"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 30,
-                       "line_start": 20,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Root of everything.</span>",
+               "modifiers": ["interface"]
        }],
        "page": null,
        "count": null,
index 9dbc03c..b49877d 100644 (file)
@@ -1,56 +1,54 @@
 {
        "results": [{
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Character",
+                       "synopsis": "Characters can be played by both the human or the machine."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Character$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 68,
-                       "line_start": 21,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "total_strengh",
+               "synopsis": "The actual strength of the character.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Character",
+                       "synopsis": "Characters can be played by both the human or the machine."
+               }, "$", {
+                       "name": "total_strengh",
+                       "synopsis": "The actual strength of the character."
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Character$total_strengh",
-               "mdoc": {
-                       "content": "The actual strength of the character.\n\nReturns `race.base_strength + career.strength_bonus` or just `race.base_strength` is unemployed.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 2,
-                               "line_end": 42,
-                               "line_start": 39,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
+               "html_synopsis": "<span class=\"synopsys nitdoc\">The actual strength of the character.</span>",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 45,
-                       "line_start": 39,
-                       "file": "test_location"
-               },
                "is_intro": true,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "test_prog::Int"
-                       },
-                       "vararg_rank": -1
+                               "name": "Int",
+                               "synopsis": "Some services about Integers.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
+                       }
                }
        }],
        "page": null,
index 6106b9b..0f1dd96 100644 (file)
@@ -1,76 +1,49 @@
 {
        "results": [{
                "name": "Alcoholic",
+               "synopsis": "Alcoholics are good to nothing escept taking punches.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Alcoholic",
+                       "synopsis": "Alcoholics are good to nothing escept taking punches."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Alcoholic",
-               "mdoc": {
-                       "content": "Alcoholics are good to nothing escept taking punches.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 61,
-                               "line_start": 60,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 69,
-                       "line_start": 60,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Alcoholics are good to nothing escept taking punches.</span>",
+               "modifiers": ["class"]
        }, {
                "name": "Magician",
+               "synopsis": "Magicians know magic and how to use it.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Magician",
+                       "synopsis": "Magicians know magic and how to use it."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Magician",
-               "mdoc": {
-                       "content": "Magicians know magic and how to use it.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 50,
-                               "line_start": 49,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 58,
-                       "line_start": 49,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Magicians know magic and how to use it.</span>",
+               "modifiers": ["class"]
        }, {
                "name": "Warrior",
+               "synopsis": "Warriors are good for fighting.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Warrior",
+                       "synopsis": "Warriors are good for fighting."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Warrior",
-               "mdoc": {
-                       "content": "Warriors are good for fighting.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 39,
-                               "line_start": 38,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 47,
-                       "line_start": 38,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Warriors are good for fighting.</span>",
+               "modifiers": ["class"]
        }],
        "page": null,
        "count": null,
index 6106b9b..0f1dd96 100644 (file)
@@ -1,76 +1,49 @@
 {
        "results": [{
                "name": "Alcoholic",
+               "synopsis": "Alcoholics are good to nothing escept taking punches.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Alcoholic",
+                       "synopsis": "Alcoholics are good to nothing escept taking punches."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Alcoholic",
-               "mdoc": {
-                       "content": "Alcoholics are good to nothing escept taking punches.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 61,
-                               "line_start": 60,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 69,
-                       "line_start": 60,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Alcoholics are good to nothing escept taking punches.</span>",
+               "modifiers": ["class"]
        }, {
                "name": "Magician",
+               "synopsis": "Magicians know magic and how to use it.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Magician",
+                       "synopsis": "Magicians know magic and how to use it."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Magician",
-               "mdoc": {
-                       "content": "Magicians know magic and how to use it.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 50,
-                               "line_start": 49,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 58,
-                       "line_start": 49,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Magicians know magic and how to use it.</span>",
+               "modifiers": ["class"]
        }, {
                "name": "Warrior",
+               "synopsis": "Warriors are good for fighting.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Warrior",
+                       "synopsis": "Warriors are good for fighting."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Warrior",
-               "mdoc": {
-                       "content": "Warriors are good for fighting.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 39,
-                               "line_start": 38,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 47,
-                       "line_start": 38,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Warriors are good for fighting.</span>",
+               "modifiers": ["class"]
        }],
        "page": null,
        "count": null,
index 63035b5..e229fc7 100644 (file)
@@ -1,25 +1,16 @@
 {
        "name": "Character",
+       "synopsis": "Characters can be played by both the human or the machine.",
+       "namespace": [{
+               "name": "test_prog",
+               "synopsis": "Test program for model tools."
+       }, "::", {
+               "name": "Character",
+               "synopsis": "Characters can be played by both the human or the machine."
+       }],
        "class_name": "MClass",
        "full_name": "test_prog::Character",
-       "mdoc": {
-               "content": "Characters can be played by both the human or the machine.",
-               "location": {
-                       "column_end": 0,
-                       "column_start": 1,
-                       "line_end": 22,
-                       "line_start": 21,
-                       "file": "test_location"
-               }
-       },
        "visibility": "public",
-       "modifiers": ["class"],
-       "location": {
-               "column_end": 3,
-               "column_start": 1,
-               "line_end": 68,
-               "line_start": 21,
-               "file": "test_location"
-       },
-       "mparameters": []
+       "html_synopsis": "<span class=\"synopsys nitdoc\">Characters can be played by both the human or the machine.</span>",
+       "modifiers": ["class"]
 }
index 402b350..e483a2e 100644 (file)
 {
        "results": [{
                "name": "_endurance_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "careers",
+                       "synopsis": "Careers of the game."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "_endurance_bonus"
+               }],
                "class_name": "MAttribute",
                "full_name": "test_prog::careers::Career::_endurance_bonus",
-               "mdoc": null,
                "visibility": "private",
                "modifiers": ["private", "var"],
-               "location": {
-                       "column_end": 25,
-                       "column_start": 2,
-                       "line_end": 32,
-                       "line_start": 32,
-                       "file": "test_location"
-               },
                "static_mtype": {
-                       "full_name": "test_prog::Int"
+                       "name": "Int",
+                       "synopsis": "Some services about Integers.",
+                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                }
        }, {
                "name": "_intelligence_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "careers",
+                       "synopsis": "Careers of the game."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "_intelligence_bonus"
+               }],
                "class_name": "MAttribute",
                "full_name": "test_prog::careers::Career::_intelligence_bonus",
-               "mdoc": null,
                "visibility": "private",
                "modifiers": ["private", "var"],
-               "location": {
-                       "column_end": 28,
-                       "column_start": 2,
-                       "line_end": 33,
-                       "line_start": 33,
-                       "file": "test_location"
-               },
                "static_mtype": {
-                       "full_name": "test_prog::Int"
+                       "name": "Int",
+                       "synopsis": "Some services about Integers.",
+                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                }
        }, {
                "name": "_strength_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "careers",
+                       "synopsis": "Careers of the game."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "_strength_bonus"
+               }],
                "class_name": "MAttribute",
                "full_name": "test_prog::careers::Career::_strength_bonus",
-               "mdoc": null,
                "visibility": "private",
                "modifiers": ["private", "var"],
-               "location": {
-                       "column_end": 24,
-                       "column_start": 2,
-                       "line_end": 31,
-                       "line_start": 31,
-                       "file": "test_location"
-               },
                "static_mtype": {
-                       "full_name": "test_prog::Int"
+                       "name": "Int",
+                       "synopsis": "Some services about Integers.",
+                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                }
        }, {
                "name": "endurance_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "endurance_bonus"
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::endurance_bonus",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 25,
-                       "column_start": 2,
-                       "line_end": 32,
-                       "line_start": 32,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "test_prog::Int"
-                       },
-                       "vararg_rank": -1
+                               "name": "Int",
+                               "synopsis": "Some services about Integers.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
+                       }
                }
        }, {
                "name": "endurance_bonus=",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "endurance_bonus="
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::endurance_bonus=",
-               "mdoc": null,
                "visibility": "protected",
                "modifiers": ["protected", "fun"],
-               "location": {
-                       "column_end": 25,
-                       "column_start": 2,
-                       "line_end": 32,
-                       "line_start": 32,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 1,
-                       "mparams": [{
+                       "mparameters": [{
                                "is_vararg": false,
                                "name": "endurance_bonus",
                                "mtype": {
-                                       "full_name": "test_prog::Int"
+                                       "name": "Int",
+                                       "synopsis": "Some services about Integers.",
+                                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                                }
                        }],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Career$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 12,
-                       "column_start": 2,
-                       "line_end": 35,
-                       "line_start": 35,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "intelligence_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "intelligence_bonus"
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::intelligence_bonus",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 28,
-                       "column_start": 2,
-                       "line_end": 33,
-                       "line_start": 33,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "test_prog::Int"
-                       },
-                       "vararg_rank": -1
+                               "name": "Int",
+                               "synopsis": "Some services about Integers.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
+                       }
                }
        }, {
                "name": "intelligence_bonus=",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "intelligence_bonus="
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::intelligence_bonus=",
-               "mdoc": null,
                "visibility": "protected",
                "modifiers": ["protected", "fun"],
-               "location": {
-                       "column_end": 28,
-                       "column_start": 2,
-                       "line_end": 33,
-                       "line_start": 33,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 1,
-                       "mparams": [{
+                       "mparameters": [{
                                "is_vararg": false,
                                "name": "intelligence_bonus",
                                "mtype": {
-                                       "full_name": "test_prog::Int"
+                                       "name": "Int",
+                                       "synopsis": "Some services about Integers.",
+                                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                                }
                        }],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "return_mtype": null
                }
        }, {
                "name": "strength_bonus",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "strength_bonus"
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::strength_bonus",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 24,
-                       "column_start": 2,
-                       "line_end": 31,
-                       "line_start": 31,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "test_prog::Int"
-                       },
-                       "vararg_rank": -1
+                               "name": "Int",
+                               "synopsis": "Some services about Integers.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
+                       }
                }
        }, {
                "name": "strength_bonus=",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "::", {
+                       "name": "strength_bonus="
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Career::strength_bonus=",
-               "mdoc": null,
                "visibility": "protected",
                "modifiers": ["protected", "fun"],
-               "location": {
-                       "column_end": 24,
-                       "column_start": 2,
-                       "line_end": 31,
-                       "line_start": 31,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 1,
-                       "mparams": [{
+                       "mparameters": [{
                                "is_vararg": false,
                                "name": "strength_bonus",
                                "mtype": {
-                                       "full_name": "test_prog::Int"
+                                       "name": "Int",
+                                       "synopsis": "Some services about Integers.",
+                                       "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
                                }
                        }],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "return_mtype": null
                }
        }],
        "page": null,
index ae8f477..c7ddd5a 100644 (file)
 {
        "results": [{
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "$", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Object$init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["init"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 30,
-                       "line_start": 20,
-                       "file": "test_location"
-               },
                "is_intro": true,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Race",
+                       "synopsis": "Race determines basic characteristics and what the character will be able to do in life."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Race$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 12,
-                       "column_start": 2,
-                       "line_end": 44,
-                       "line_start": 44,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Career$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 12,
-                       "column_start": 2,
-                       "line_end": 35,
-                       "line_start": 35,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Human",
+                       "synopsis": "Humans are able to do everithing."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Human$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 55,
-                       "line_start": 51,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Elf",
+                       "synopsis": "Elves make good magicians."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Elf$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 77,
-                       "line_start": 73,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Warrior",
+                       "synopsis": "Warriors are good for fighting."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Warrior$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 46,
-                       "line_start": 42,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Magician",
+                       "synopsis": "Magicians know magic and how to use it."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Magician$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 57,
-                       "line_start": 53,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Alcoholic",
+                       "synopsis": "Alcoholics are good to nothing escept taking punches."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Alcoholic$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 68,
-                       "line_start": 64,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Character",
+                       "synopsis": "Characters can be played by both the human or the machine."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Character$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 68,
-                       "line_start": 21,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }, {
                "name": "init",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "$", {
+                       "name": "Dwarf",
+                       "synopsis": "Dwarves make strong warriors."
+               }, "$", {
+                       "name": "Object",
+                       "synopsis": "Root of everything."
+               }, "::", {
+                       "name": "init"
+               }],
                "class_name": "MMethodDef",
                "full_name": "test_prog$Dwarf$Object::init",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["redef", "init"],
-               "location": {
-                       "column_end": 4,
-                       "column_start": 2,
-                       "line_end": 66,
-                       "line_start": 62,
-                       "file": "test_location"
-               },
-               "is_intro": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
-                       "return_mtype": null,
-                       "vararg_rank": -1
+                       "mparameters": [],
+                       "return_mtype": null
                }
        }],
        "page": null,
index 866e31f..410f8e6 100644 (file)
                }
        }, {
                "name": "game_examples",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "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"
-               }
+               "modifiers": ["module"]
        }, {
                "name": "platform",
                "class_name": "MModule",
index a746bec..f50645e 100644 (file)
@@ -1,28 +1,16 @@
 {
        "results": [{
                "name": "Career",
+               "synopsis": "A `Career` gives a characteristic bonus or malus to the character.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Career",
-               "mdoc": {
-                       "content": "A `Career` gives a characteristic bonus or malus to the character.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 30,
-                               "line_start": 29,
-                               "file": "test_location"
-                       }
-               },
-               "visibility": "public",
-               "modifiers": ["abstract class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 36,
-                       "line_start": 29,
-                       "file": "test_location"
-               },
-               "mparameters": []
        }],
        "page": null,
        "count": null,
index d84a73b..c392050 100644 (file)
 {
        "results": [{
                "name": "Career",
+               "synopsis": "A `Career` gives a characteristic bonus or malus to the character.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Career",
+                       "synopsis": "A `Career` gives a characteristic bonus or malus to the character."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Career",
-               "mdoc": {
-                       "content": "A `Career` gives a characteristic bonus or malus to the character.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 30,
-                               "line_start": 29,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["abstract class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 36,
-                       "line_start": 29,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">A <code class=\"nitcode\"><span class=\"nitcode\"><span class=\"line\"><span class=\"nc_t\">Career</span></span></span></code> gives a characteristic bonus or malus to the character.</span>",
+               "modifiers": ["abstract class"]
        }, {
                "name": "career",
+               "synopsis": "The current `Career` of the character.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Character",
+                       "synopsis": "Characters can be played by both the human or the machine."
+               }, "::", {
+                       "name": "career",
+                       "synopsis": "The current `Career` of the character."
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Character::career",
-               "mdoc": {
-                       "content": "The current `Career` of the character.\nReturns `null` if character is unemployed.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 2,
-                               "line_end": 29,
-                               "line_start": 27,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
+               "html_synopsis": "<span class=\"synopsys nitdoc\">The current <code class=\"nitcode\"><span class=\"nitcode\"><span class=\"line\"><span class=\"nc_t\">Career</span></span></span></code> of the character.</span>",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 47,
-                       "column_start": 2,
-                       "line_end": 29,
-                       "line_start": 27,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "nullable test_prog::Career"
-                       },
-                       "vararg_rank": -1
+                               "name": "nullable Career",
+                               "synopsis": "A `Career` gives a characteristic bonus or malus to the character.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">A <code class=\"nitcode\"><span class=\"nitcode\"><span class=\"line\"><span class=\"nc_t\">Career</span></span></span></code> gives a characteristic bonus or malus to the character.</span>"
+                       }
                }
        }, {
                "name": "game",
+               "synopsis": "Gaming group",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, ">", {
+                       "name": "game",
+                       "synopsis": "Gaming group"
+               }, ">"],
                "class_name": "MGroup",
                "full_name": "test_prog>game>",
-               "mdoc": {
-                       "content": "Gaming group",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 0,
-                               "line_end": 1,
-                               "line_start": 1,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["group"],
-               "location": {
-                       "column_end": 0,
-                       "column_start": 0,
-                       "line_end": 0,
-                       "line_start": 0,
-                       "file": "test_location"
-               }
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Gaming group</span>",
+               "modifiers": ["group"]
        }, {
                "name": "game",
+               "synopsis": "A game abstraction for RPG.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "game",
+                       "synopsis": "A game abstraction for RPG."
+               }],
                "class_name": "MModule",
                "full_name": "test_prog::game",
-               "mdoc": {
-                       "content": "A game abstraction for RPG.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 16,
-                               "line_start": 15,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["module"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 45,
-                       "line_start": 15,
-                       "file": "test_location"
-               }
+               "html_synopsis": "<span class=\"synopsys nitdoc\">A game abstraction for RPG.</span>",
+               "modifiers": ["module"]
        }, {
                "name": "races",
+               "synopsis": "Races of the game.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "races",
+                       "synopsis": "Races of the game."
+               }],
                "class_name": "MModule",
                "full_name": "test_prog::races",
-               "mdoc": {
-                       "content": "Races of the game.\n\nAll characters belong to a `Race`.\n\nAvailable races:\n\n * `Human`\n * `Dwarf`\n * `Elf`",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 24,
-                               "line_start": 15,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["module"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 78,
-                       "line_start": 15,
-                       "file": "test_location"
-               }
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Races of the game.</span>",
+               "modifiers": ["module"]
        }, {
                "name": "careers",
+               "synopsis": "Careers of the game.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "careers",
+                       "synopsis": "Careers of the game."
+               }],
                "class_name": "MModule",
                "full_name": "test_prog::careers",
-               "mdoc": {
-                       "content": "Careers of the game.\n\nAll characters can have a `Career`.\nA character can also quit its current career and start a new one.\n\nAvailable careers:\n\n * `Warrior`\n * `Magician`\n * `Alcoholic`",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 25,
-                               "line_start": 15,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["module"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 69,
-                       "line_start": 15,
-                       "file": "test_location"
-               }
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Careers of the game.</span>",
+               "modifiers": ["module"]
        }, {
                "name": "Game",
+               "synopsis": "This is the interface you have to implement to use ure gaming platform.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Game",
+                       "synopsis": "This is the interface you have to implement to use ure gaming platform."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Game",
-               "mdoc": {
-                       "content": "This is the interface you have to implement to use ure gaming platform.\n\nsee http://our.platform.com",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 23,
-                               "line_start": 20,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["interface"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 45,
-                       "line_start": 20,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">This is the interface you have to implement to use ure gaming platform.</span>",
+               "modifiers": ["interface"]
        }, {
                "name": "Race",
+               "synopsis": "Race determines basic characteristics and what the character will be able to do in life.",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Race",
+                       "synopsis": "Race determines basic characteristics and what the character will be able to do in life."
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Race",
-               "mdoc": {
-                       "content": "Race determines basic characteristics and what the character will be able to do in life.\n\nThese are base characteristics, they cannot be changed\nbut you can add new ones if needed using refinement.\nObjects and spells cannot change those characteristics.",
-                       "location": {
-                               "column_end": 0,
-                               "column_start": 1,
-                               "line_end": 33,
-                               "line_start": 28,
-                               "file": "test_location"
-                       }
-               },
                "visibility": "public",
-               "modifiers": ["abstract class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 45,
-                       "line_start": 28,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "html_synopsis": "<span class=\"synopsys nitdoc\">Race determines basic characteristics and what the character will be able to do in life.</span>",
+               "modifiers": ["abstract class"]
        }, {
                "name": "Starter",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Starter"
+               }],
                "class_name": "MClass",
                "full_name": "test_prog::Starter",
-               "mdoc": null,
                "visibility": "public",
-               "modifiers": ["class"],
-               "location": {
-                       "column_end": 3,
-                       "column_start": 1,
-                       "line_end": 23,
-                       "line_start": 21,
-                       "file": "test_location"
-               },
-               "mparameters": []
+               "modifiers": ["class"]
        }, {
                "name": "age",
+               "namespace": [{
+                       "name": "test_prog",
+                       "synopsis": "Test program for model tools."
+               }, "::", {
+                       "name": "Character",
+                       "synopsis": "Characters can be played by both the human or the machine."
+               }, "::", {
+                       "name": "age"
+               }],
                "class_name": "MMethod",
                "full_name": "test_prog::Character::age",
-               "mdoc": null,
                "visibility": "public",
                "modifiers": ["fun"],
-               "location": {
-                       "column_end": 13,
-                       "column_start": 2,
-                       "line_end": 36,
-                       "line_start": 36,
-                       "file": "test_location"
-               },
-               "is_init": false,
                "msignature": {
                        "arity": 0,
-                       "mparams": [],
+                       "mparameters": [],
                        "return_mtype": {
-                               "full_name": "test_prog::Int"
-                       },
-                       "vararg_rank": -1
+                               "name": "Int",
+                               "synopsis": "Some services about Integers.",
+                               "html_synopsis": "<span class=\"synopsys nitdoc\">Some services about Integers.</span>"
+                       }
                }
        }],
        "page": 1,