projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/TokenReader.js
[gnome.introspection-doc-generator]
/
Introspect
/
NameSpace.js
diff --git
a/Introspect/NameSpace.js
b/Introspect/NameSpace.js
index
3f52160
..
1a20fb7
100644
(file)
--- a/
Introspect/NameSpace.js
+++ b/
Introspect/NameSpace.js
@@
-12,8
+12,9
@@
console = imports.console.console;
// BC/FC
if (!GI.Repository) {
GI.Repository = GI.IRepository;
// BC/FC
if (!GI.Repository) {
GI.Repository = GI.IRepository;
-
+ GI.FunctionInfoFlags = GI.IFunctionInfoFlags ;
GI.InfoType = GI.IInfoType;
GI.InfoType = GI.IInfoType;
+ GI.TypeTag= GI.ITypeTag;
GI.IBaseInfo.prototype.get_name = function(n) {
return GI.base_info_get_name(this, n);
GI.IBaseInfo.prototype.get_name = function(n) {
return GI.base_info_get_name(this, n);
@@
-21,7
+22,7
@@
if (!GI.Repository) {
GI.IBaseInfo.prototype.get_namespace = function(n) {
return GI.base_info_get_namespace(this, n);
}
GI.IBaseInfo.prototype.get_namespace = function(n) {
return GI.base_info_get_namespace(this, n);
}
- GI.IBaseInfo.
get_attribute
( n) {
+ GI.IBaseInfo.
prototype.get_attribute = function
( n) {
return GI.base_info_get_attribute(this, n);
}
}
return GI.base_info_get_attribute(this, n);
}
}
@@
-99,7
+100,7
@@
NameSpace = {
var info = gi.get_info (ns, i);
// print("NAME: " + info.get_name());
//continue;
var info = gi.get_info (ns, i);
// print("NAME: " + info.get_name());
//continue;
- var info_type = GI.base_info_get_type
(info
);
+ var info_type = GI.base_info_get_type
? GI.base_info_get_type(info) : info.get_type(
);
// print("Type: " + info_type);
switch(info_type) {
case GI.InfoType.OBJECT:
// print("Type: " + info_type);
switch(info_type) {
case GI.InfoType.OBJECT:
@@
-141,7
+142,7
@@
NameSpace = {
continue;
}
}
continue;
}
}
-
print ("SCAN NAMESPACE
ALL DONE");
+
//print ("SCAN NAMESPACES
ALL DONE");
var gi = GI.Repository.get_default();
var ver = gi.get_version(ns);
var gi = GI.Repository.get_default();
var ver = gi.get_version(ns);
@@
-189,7
+190,7
@@
NameSpace = {
doc : function(what) {
doc : function(what) {
- print ("DOC: + " +what);
+
//
print ("DOC: + " +what);
var ns = what.split('.').shift();
return '';
this.commentLoad(ns);
var ns = what.split('.').shift();
return '';
this.commentLoad(ns);