Sha256: 3f9a8c31a123e239b2d85bb3035f2967609db1fa35a7ae32eedc3cb596040f91

Contents?: true

Size: 1.06 KB

Versions: 39

Compression:

Stored size: 1.06 KB

Contents

JSDOC.PluginManager.registerPlugin("InterfacePlugin", {

    //  Called during the construction of the Symbol
    onSymbol: function(symbol)
    {
        if (!symbol.comment)
            return;
        if (symbol.comment.getTag("interface").length)
            symbol.isInterface= true;
    },
    
    onDocCommentTags: function(comment)
    {
        var interfaceTag= comment.getTag("interface");
        if (!interfaceTag || !interfaceTag.length)
            return;
        interfaceTag= interfaceTag[0];
        
        if (!comment.getTag("class").length)
            comment.tags.push(new JSDOC.DocTag("class " + interfaceTag.desc));
        if (!comment.getTag("name").length)
            comment.tags.push(new JSDOC.DocTag("name " + interfaceTag.name));
    },
    
    onDocTag: function(tag)
    {
        switch (tag.title)
        {
            case 'interface':
                tag.desc= tag.nibbleName(tag.desc);
                break;
            case 'implements':
                tag.desc= tag.nibbleName(tag.desc);
                break;
        }
    }
    
});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
distil-0.14.5.a vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.4 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.3 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.2 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.2.a vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.1 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.1.a vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.i vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.h vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.g vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.d vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.c vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.14.0.b vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.6 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.5 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.4 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.3 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.2 vendor/jsdoc-extras/plugins/interface-plugin.js
distil-0.13.1 vendor/jsdoc-extras/plugins/interface-plugin.js