projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-arrange files, add support for classic JS Documentor, and packer
[gnome.introspection-doc-generator]
/
Introspect
/
Method.js
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
(file)
--- a/
JSDOC/Introspect/Method.js
+++ b/
Introspect/Method.js
@@
-3,13
+3,13
@@
GI = imports.gi.GIRepository;
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
*/
/**
* Methods, functions or consturctors
*/
@@
-17,7
+17,7
@@
Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
-Method = Object.define(
+Method =
X
Object.define(
function(m, memberOf, saveto, keylist) {
this.propertyType = 'Method';
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)),
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) {
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.
}
return false; // skip.
}
@@
-62,7
+62,7
@@
Method = Object.define(
// this is a bit messy, as we probably loose the doc's on new..
// this is a bit messy, as we probably loose the doc's on new..
- Object.extend(this, {
+
X
Object.extend(this, {
name : n,
params: args,
returns : retval,
name : n,
params: args,
returns : retval,
@@
-70,13
+70,13
@@
Method = Object.define(
isStatic : !(flags & GI.IFunctionInfoFlags.IS_METHOD),
memberOf : memberOf.alias,
exceptions : [],
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) {
});
// 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);
});
//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);
}
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);
}
addedto.push(ty);
}