|
@@ -279,15 +279,14 @@ class HtmlPrinter {
|
|
|
if( f.params != null )
|
|
if( f.params != null )
|
|
|
print("<"+f.params.join(", ")+">");
|
|
print("<"+f.params.join(", ")+">");
|
|
|
print("(");
|
|
print("(");
|
|
|
- var me = this;
|
|
|
|
|
display(args,function(a) {
|
|
display(args,function(a) {
|
|
|
if( a.opt )
|
|
if( a.opt )
|
|
|
- me.print("?");
|
|
|
|
|
|
|
+ print("?");
|
|
|
if( a.name != null && a.name != "" ) {
|
|
if( a.name != null && a.name != "" ) {
|
|
|
- me.print(a.name);
|
|
|
|
|
- me.print(" : ");
|
|
|
|
|
|
|
+ print(a.name);
|
|
|
|
|
+ print(" : ");
|
|
|
}
|
|
}
|
|
|
- me.processType(a.t);
|
|
|
|
|
|
|
+ processType(a.t);
|
|
|
},", ");
|
|
},", ");
|
|
|
print(") : ");
|
|
print(") : ");
|
|
|
processType(ret);
|
|
processType(ret);
|
|
@@ -338,13 +337,12 @@ class HtmlPrinter {
|
|
|
print(c.name);
|
|
print(c.name);
|
|
|
if( c.args != null ) {
|
|
if( c.args != null ) {
|
|
|
print("(");
|
|
print("(");
|
|
|
- var me = this;
|
|
|
|
|
display(c.args,function(a) {
|
|
display(c.args,function(a) {
|
|
|
if( a.opt )
|
|
if( a.opt )
|
|
|
- me.print("?");
|
|
|
|
|
- me.print(a.name);
|
|
|
|
|
- me.print(" : ");
|
|
|
|
|
- me.processType(a.t);
|
|
|
|
|
|
|
+ print("?");
|
|
|
|
|
+ print(a.name);
|
|
|
|
|
+ print(" : ");
|
|
|
|
|
+ processType(a.t);
|
|
|
},",");
|
|
},",");
|
|
|
print(")");
|
|
print(")");
|
|
|
}
|
|
}
|
|
@@ -394,21 +392,8 @@ class HtmlPrinter {
|
|
|
switch( t ) {
|
|
switch( t ) {
|
|
|
case CAnonymous(fields):
|
|
case CAnonymous(fields):
|
|
|
print('<dl>');
|
|
print('<dl>');
|
|
|
- for( f in fields ) {
|
|
|
|
|
- processClassField(all,{
|
|
|
|
|
- name : f.name,
|
|
|
|
|
- type : f.t,
|
|
|
|
|
- isPublic : true,
|
|
|
|
|
- isOverride : false,
|
|
|
|
|
- doc : null,
|
|
|
|
|
- get : RNormal,
|
|
|
|
|
- set : RNormal,
|
|
|
|
|
- params : null,
|
|
|
|
|
- platforms : platforms,
|
|
|
|
|
- meta : [],
|
|
|
|
|
- line : null,
|
|
|
|
|
- },false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ for( f in fields )
|
|
|
|
|
+ processClassField(all,f);
|
|
|
print('</dl>');
|
|
print('</dl>');
|
|
|
default:
|
|
default:
|
|
|
if( all.length != platforms.length ) {
|
|
if( all.length != platforms.length ) {
|
|
@@ -461,10 +446,9 @@ class HtmlPrinter {
|
|
|
processTypeFun(ret,false);
|
|
processTypeFun(ret,false);
|
|
|
case CAnonymous(fields):
|
|
case CAnonymous(fields):
|
|
|
print("{ ");
|
|
print("{ ");
|
|
|
- var me = this;
|
|
|
|
|
display(fields,function(f) {
|
|
display(fields,function(f) {
|
|
|
- me.print(f.name+" : ");
|
|
|
|
|
- me.processType(f.t);
|
|
|
|
|
|
|
+ print(f.name+" : ");
|
|
|
|
|
+ processType(f.type);
|
|
|
},", ");
|
|
},", ");
|
|
|
print("}");
|
|
print("}");
|
|
|
case CDynamic(t):
|
|
case CDynamic(t):
|