-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e927547
commit e9bda28
Showing
17 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
function($mpt){ | ||
if (this.defaultConstructor) { | ||
var mm=getrtmm$$(this.tipo); | ||
if (mm.d[mm.d.length-1] !== '$def') { | ||
//fake constructor | ||
if (extendsType($mpt.Annotation$annotated,{t:SharedAnnotation}))return true; | ||
if (extendsType($mpt.Annotation$annotated,{t:DocAnnotation}))return false; | ||
} | ||
} | ||
var x=annd$annotations(this,{Annotation$annotations:$mpt.Annotation$annotated}); | ||
return x&&x.size>0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
if (this.cont$===undefined) { | ||
var cc=getrtmm$$(this.tipo).$cont; | ||
this.cont$=openClass$jsint(this.containingPackage,cc); | ||
var cc=getrtmm$$(this.tipo); | ||
if (this.defaultConstructor && cc.d[cc.d.length-1]!=='$def') { | ||
//fake constructor | ||
this.cont$=openClass$jsint(this.containingPackage,this.tipo); | ||
} else { | ||
cc=cc.$cont; | ||
this.cont$=openClass$jsint(this.containingPackage,cc); | ||
} | ||
} | ||
return this.cont$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
if (this.isdef$===undefined) { | ||
//Just by checking the path we can determine this | ||
var mm=getrtmm$$(this.tipo); | ||
this.isdef$ = mm.d[mm.d.length-1] === '$def'; | ||
this.isdef$ = mm.d.length<3 || mm.d[mm.d.length-1] === '$def' || mm.d[mm.d.length-1]==='$c'; | ||
} | ||
return this.isdef$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
return (getrtmm$$(this.tipo).pa&1) > 0; | ||
return (getrtmm$$(this.tipo).pa&1) > 0 || this.defaultConstructor; |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
runtime-js/jsint/OpenClassWithConstructors/getParameterDeclaration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
runtime-js/jsint/OpenClassWithConstructors/parameterDeclarations.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
return FunctionalDeclaration$meta$declaration.$$.prototype.$prop$getParameterDeclarations.get.call(this); | ||
var dc=this.defaultConstructor; | ||
return dc?dc.parameterDeclarations:null; |
4 changes: 3 additions & 1 deletion
4
runtime-js/jsint/OpenClassWithInitializer/annotatedConstructorDeclarations.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
function($mpt) { | ||
return empty(); | ||
var dc=this.defaultConstructor; | ||
return dc.annotated({Annotation$annotated:$mpt.Annotation$annotatedConstructorDeclarations})? | ||
Singleton(dc,{t:CallableConstructorDeclaration$meta$declaration}):empty(); | ||
} |
1 change: 1 addition & 0 deletions
1
runtime-js/jsint/OpenClassWithInitializer/defaultConstructor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
return OpenCallableConstructor$jsint(this.pkg_,this.tipo); |
7 changes: 0 additions & 7 deletions
7
runtime-js/jsint/OpenClassWithInitializer/getConstructorDeclaration.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
if (this.isdef$===undefined) { | ||
//Just by checking the path we can determine this | ||
var mm=getrtmm$$(this.tipo); | ||
this.isdef$ = mm.d[mm.d.length-1] === '$def'; | ||
this.isdef$ = mm.d.length<3 || mm.d[mm.d.length-1] === '$def' || mm.d[mm.d.length-1]==='$c'; | ||
} | ||
return this.isdef$; |