
Originally Posted by
Eric Suen
Seems this works for me, maybe we are not talking the same thing, see the attachment
A good example file would be Component.js in Ext. There are two types of definitions in this file. The "singleton style":
Code:
Ext.ComponentMgr = function(){
...
return {
register : function(c){
all.add(c);
},
... (more functions)...
The other is the standard Ext style class declaration:
Code:
Ext.Component = function(config){
...
};
Ext.extend(Ext.Component, Ext.util.Observable, {
...(functions here)...
});
I understand that parsing these out and associating them to the correct class would be pretty difficult. For me (and maybe others), it doesn't matter if they are associated with the correct class, just that they appear in the outline somewhere.
Here's some screenshots that I think will better explain what I mean:
Spket:

Aptana: (empty too)

IntelliJ: (picks up the functions but can't figure out the class name)

Even though IntelliJ doesn't give the classes proper names, in large files having the function name in the outline is better than nothing.
Thanks for taking the time to listen to feedback. I look forward to the collapsing comments.