X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FMethod.js;fp=JSDOC%2FIntrospect%2FMethod.js;h=2c44879ba16d62bbae60fed669c9241b4ed40e76;hp=b26a4fb17afd1d97fd807d990f33fcb07d36fa18;hb=134619d3049edce9b27810483e8011e5dfb783e0;hpb=649a91296eb2d7e5cbd4d1407deb9c1fa714229f diff --git a/JSDOC/Introspect/Method.js b/Introspect/Method.js similarity index 79% rename from JSDOC/Introspect/Method.js rename to Introspect/Method.js index b26a4fb..2c44879 100644 --- a/JSDOC/Introspect/Method.js +++ b/Introspect/Method.js @@ -3,13 +3,13 @@ GI = imports.gi.GIRepository; -imports['Object.js'].load(Object); +XObject = imports.XObject.XObject; +console = imports.console.console; +NameSpace = imports.NameSpace.NameSpace; -console = imports['console.js'].console; +Basic = imports.Basic.Basic; - -Introspect = imports['JSDOC/Introspect.js'].Introspect; -Basic = imports['JSDOC/Introspect/Basic.js'].Basic; + /** * Methods, functions or consturctors */ @@ -17,7 +17,7 @@ Basic = imports['JSDOC/Introspect/Basic.js'].Basic; -Method = Object.define( +Method = XObject.define( function(m, memberOf, saveto, keylist) { this.propertyType = 'Method'; @@ -37,7 +37,7 @@ Method = Object.define( var retval = [ { name : 0, type : this.typeToName(GI.callable_info_get_return_type(m)), - desc : Introspect.doc(memberOf.alias + '.' + n_original + '.return-value') + desc : NameSpace.doc(memberOf.alias + '.' + n_original + '.return-value') } ]; @@ -47,7 +47,7 @@ Method = Object.define( if ((n == 'c_new') && !args.length && memberOf.constructors.length) { - memberOf.constructors[0].doc = Introspect.doc(memberOf.alias + '.' + n_original); + memberOf.constructors[0].doc = NameSpace.doc(memberOf.alias + '.' + n_original); return false; // skip. } @@ -62,7 +62,7 @@ Method = Object.define( // this is a bit messy, as we probably loose the doc's on new.. - Object.extend(this, { + XObject.extend(this, { name : n, params: args, returns : retval, @@ -70,13 +70,13 @@ Method = Object.define( isStatic : !(flags & GI.IFunctionInfoFlags.IS_METHOD), memberOf : memberOf.alias, exceptions : [], - desc : Introspect.doc(memberOf.alias + '.' + n_original) + desc : NameSpace.doc(memberOf.alias + '.' + n_original) }); // add descriptions to the arguments.. this.params.map(function(p) { - p.desc = Introspect.doc(memberOf.alias + '.' + n_original + '.' + p.name); + p.desc = NameSpace.doc(memberOf.alias + '.' + n_original + '.' + p.name); //Seed.print(memberOf.alias + '.' + n_original + '.' + p.name + ':' + p.desc); }); @@ -96,8 +96,8 @@ Method = Object.define( - Introspect.references[ty] = Introspect.references[ty] || []; - Introspect.references[ty].push(this); + NameSpace.references[ty] = NameSpace.references[ty] || []; + NameSpace.references[ty].push(this); addedto.push(ty); } @@ -126,8 +126,8 @@ Method = Object.define( - Introspect.references[ty] = Introspect.references[ty] || []; - Introspect.references[ty].push(this); + NameSpace.references[ty] = NameSpace.references[ty] || []; + NameSpace.references[ty].push(this); addedto.push(ty); }