yui / yuidoc

YUI Javascript Documentation Tool
http://yui.github.com/yuidoc
Other
891 stars 210 forks source link

Enclosed class falls out to root #257

Open r2bln opened 10 years ago

r2bln commented 10 years ago

When creating a hierarchy like this:

module Root:

class12

Code:

/**
* The test object. 
*
* @module Root
*
*/

var Root = function() {
    /**
    * This class contains logging methods of different severity 
    *
    * @namespace Root
    * @extends Root
    * @class Class1
    *
    */  
    this.class1 = function() {
        /**
        * This class contains logging methods of different severity 
        *
        * @namespace Root.Class1
        * @extends Class1
        * @class Class11
        *
        */  
        this.class11 = function() {

        };

        /**
        * This class contains logging methods of different severity 
        *
        * @namespace Root.Class1
        * @extends Class1
        * @class Class12
        *
        */  
        this.class12 = function() {

        };
    };

    /**
    * This class contains logging methods of different severity 
    *
    * @namespace Root
    * @extends Root
    * @class Class2
    *
    */  
    this.class2 = function() {

        /**
        * This class contains logging methods of different severity 
        *
        * @namespace Root.Class2
        * @extends Class2
        * @class Class21
        *
        */  
        this.class21 = function() {

        };

        /**
        * This class contains logging methods of different severity 
        *
        * @namespace Root.Class2
        * @extends Class2
        * @class Class22
        *
        */  
        this.class22 = function() {

        };
    };  
}

If you delete the Class2 everything is back ok.

mightyiam commented 10 years ago

I've been trying to figure out how to control hierarchies and according to the documentation, I'm not sure that what you have provided in the example is how the poet had intended.

But I'm not having success, either.

mightyiam commented 10 years ago

I'm achieving pretty much what I want, except there's no linking from a class to its parent class, like this.