projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d38c1de
)
JSDOC/SymbolSet.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 08:27:32 +0000
(16:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 08:27:32 +0000
(16:27 +0800)
JSDOC/SymbolSet.js
patch
|
blob
|
history
diff --git
a/JSDOC/SymbolSet.js
b/JSDOC/SymbolSet.js
index
fd0c1f9
..
936ba33
100644
(file)
--- a/
JSDOC/SymbolSet.js
+++ b/
JSDOC/SymbolSet.js
@@
-17,7
+17,7
@@
SymbolSet = XObject.define(
init : function() {
this._index = {};
init : function() {
this._index = {};
- }
+ }
,
keys : function() {
var found = [];
keys : function() {
var found = [];
@@
-25,12
+25,12
@@
SymbolSet = XObject.define(
found.push(p);
}
return found;
found.push(p);
}
return found;
- }
+ }
,
hasSymbol : function(alias) {
return this.keys().indexOf(alias) > -1;
hasSymbol : function(alias) {
return this.keys().indexOf(alias) > -1;
- }
+ }
,
addSymbol : function(symbol) {
println("ADDING SYMBOL:"+symbol.alias.toString());
addSymbol : function(symbol) {
println("ADDING SYMBOL:"+symbol.alias.toString());
@@
-39,13
+39,13
@@
SymbolSet = XObject.define(
Options.LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");
}
this._index[symbol.alias] = symbol;
Options.LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");
}
this._index[symbol.alias] = symbol;
- }
+ }
,
getSymbol : function(alias) {
if (this.hasSymbol(alias)) return this._index[alias];
return false;
getSymbol : function(alias) {
if (this.hasSymbol(alias)) return this._index[alias];
return false;
- }
+ }
,
toArray : function() {
var found = [];
toArray : function() {
var found = [];
@@
-53,12
+53,12
@@
SymbolSet = XObject.define(
found.push(this._index[p]);
}
return found;
found.push(this._index[p]);
}
return found;
- }
+ }
,
deleteSymbol : function(alias) {
if (!this.hasSymbol(alias)) return;
delete this._index[alias];
deleteSymbol : function(alias) {
if (!this.hasSymbol(alias)) return;
delete this._index[alias];
- }
+ }
,
renameSymbol : function(oldName, newName) {
// todo: should check if oldname or newname already exist
renameSymbol : function(oldName, newName) {
// todo: should check if oldname or newname already exist
@@
-69,13
+69,13
@@
SymbolSet = XObject.define(
this.deleteSymbol(oldName);
this._index[newName].alias = newName;
return newName;
this.deleteSymbol(oldName);
this._index[newName].alias = newName;
return newName;
- }
+ }
,
relate : function() {
this.resolveBorrows();
this.resolveMemberOf();
this.resolveAugments();
relate : function() {
this.resolveBorrows();
this.resolveMemberOf();
this.resolveAugments();
- }
+ }
,
resolveBorrows : function() {
for (p in this._index) {
resolveBorrows : function() {
for (p in this._index) {
@@
-116,7
+116,7
@@
SymbolSet = XObject.define(
this.addSymbol(clone);
}
}
this.addSymbol(clone);
}
}
- }
+ }
,
resolveMemberOf : function() {
for (var p in this._index) {
resolveMemberOf : function() {
for (var p in this._index) {
@@
-209,7
+209,7
@@
SymbolSet = XObject.define(
if (container && !container.isNamespace) container.addMember(symbol);
}
}
if (container && !container.isNamespace) container.addMember(symbol);
}
}
- }
+ }
,
resolveAugments : function() {
// does this sort out multiple extends???
resolveAugments : function() {
// does this sort out multiple extends???
@@
-257,7
+257,7
@@
SymbolSet = XObject.define(
}
}
}
}
- }
+ }
,
buildAugmentsList : function(symbol)
{
buildAugmentsList : function(symbol)
{