Skip to content

Commit

Permalink
$mol_view_tree2_to_dts tests and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 19, 2023
1 parent a77116b commit ba4234e
Show file tree
Hide file tree
Showing 43 changed files with 499 additions and 9 deletions.
4 changes: 3 additions & 1 deletion view/tree2/to/dts/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ namespace $ {
obj.kids.map( field => {
if( field.type === '^' ) return null
return field.struct( 'line', [
field.data('\''),
field.data( field.type ),
field.data('\''),
field.data( ': ' ),
... field.hack( belt ),
field.data( ',' ),
Expand All @@ -102,7 +104,7 @@ namespace $ {

if( input.type[0] === '/' ) return [
input.data('readonly '),
input.data( input.type.slice(1) ),
input.data( input.type.slice(1) || 'unknown' ),
input.data('[]'),
]

Expand Down
9 changes: 9 additions & 0 deletions view/tree2/to/dts/test/array_channel_boolean.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare namespace $ {

export class Foo extends $mol_object {
bar( ): readonly unknown[]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctbar%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctfalse%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Cttrue%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAADL%3BAADJ%3BAAAA%3B%22%7D
13 changes: 13 additions & 0 deletions view/tree2/to/dts/test/array_channel_inheritance.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
declare namespace $ {

export class Foo extends $mol_object {
arr( ): readonly unknown[]
}

export class Bar extends Foo {
arr( ): readonly unknown[]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctarr%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Cv1%5Cn%5Ct%5Ct%5Ct%5CtBar%20Foo%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctarr%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Cv3%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5E%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Cv4%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAADL%3BAADJ%3BAAII%2CiBAAI%2CYAAJ%3BAACC%2CAAAA%2CUAAI%3BAADL%3BAAJJ%3BAAAA%3B%22%7D
9 changes: 9 additions & 0 deletions view/tree2/to/dts/test/array_channel_number.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare namespace $ {

export class Foo extends $mol_object {
bar( ): readonly unknown[]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctbar%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct-%20NaN%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct-Infinity%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%2BInfinity%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct0%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAADL%3BAADJ%3BAAAA%3B%22%7D
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare namespace $ {

export class Foo extends $mol_object {
complex( ): readonly unknown[]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctcomplex%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Ctest1%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct*%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctstr%20%5C%5Csome%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctnul%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CcAAQ%3BAADT%3BAADJ%3BAAAA%3B%22%7D
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Bar extends $mol_object {
sup( ): readonly unknown[]
arr( ): readonly unknown[]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtBar%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctsup%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Cv1%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctarr%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5C%5Cv2%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5E%20sup%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAAEJ%2CAAAA%2CUAAI%3BAAHL%3BAADJ%3BAAAA%3B%22%7D
9 changes: 9 additions & 0 deletions view/tree2/to/dts/test/array_channel_with_types.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare namespace $ {

export class Foo extends $mol_object {
arr( ): readonly readonly(number)[][]
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctarr%20%2Freadonly(number)%5B%5D%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAADL%3BAADJ%3BAAAA%3B%22%7D
11 changes: 11 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_chaining.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
c( next?: any ): any
b( next?: ReturnType< Foo["c"] > ): ReturnType< Foo["c"] >
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20%3C%3D%3E%20b%3F%20%3C%3D%3E%20c%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%3BAAAW%2CAAAA%2CYAAG%2CGAAH%2CIAAG%3BAAAV%2CAAAA%2CYAAG%2CYADX%2CGACW%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYADX%2CGACW%2CEAAI%2CCAAJ%3BAADX%3BAADJ%3BAAAA%3B%22%7D
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
c( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
b( next?: any ): any
b( next?: any ): any
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20%3C%3D%3E%20b%3F%20null%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctc%3F%20%3C%3D%3E%20b%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%3BAACH%2CAAAA%2CYAAG%2CYAFJ%2CGAEI%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYAFJ%2CGAEI%2CEAAI%2CCAAJ%3BAADI%2CAAAA%2CYAAG%2CGAAH%2CIAAG%3BAACH%2CAAAA%2CYAAG%2CGAAH%2CIAAG%3BAAFX%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_fallback.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
bar1( next?: ReturnType< Foo["bar2"] > ): ReturnType< Foo["bar2"] >
bar2( next?: number ): number
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctbar1%3F%20%3C%3D%3E%20bar2%3F%201%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CeAAM%2CYADP%2CGACO%2CEAAI%2CIAAJ%2CIAAN%2CIAAM%2CYADP%2CGACO%2CEAAI%2CIAAJ%3BAAAI%2CAAAA%2CeAAM%2CMAAN%2CIAAM%3BAADjB%3BAADJ%3BAAAA%3B%22%7D
12 changes: 12 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_in_dictionary.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare namespace $ {

export class Foo extends $mol_object {
event( ): ({
'click?': ReturnType< Foo["run"] >,
})
run( next?: any ): any
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctevent%20*%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctclick%3F%20%3C%3D%3E%20run%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAM%3BAAAA%2CAACL%2CaAAO%2CYAFT%2CGAES%2CEAAI%2CGAAJ%2CIAAP%3BAADK%3BAACM%2CAAAA%2CcAAK%2CGAAL%2CIAAK%3BAAFlB%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_indexed.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
indexed( id: any, next?: ReturnType< Foo["owner"] > ): ReturnType< Foo["owner"] >
owner( id: any, next?: any ): any
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctindexed*%3F%20%3C%3D%3E%20owner*%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2C2BAAU%2CYADX%2CGACW%2CEAAI%2CKAAJ%2CIAAV%2CIAAU%2CYADX%2CGACW%2CEAAI%2CKAAJ%3BAAAI%2CAAAA%2CyBAAQ%2CGAAR%2CIAAQ%3BAADvB%3BAADJ%3BAAAA%3B%22%7D
14 changes: 14 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_indexed_second_level.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare namespace $ {

type $mol_object__expanded_D14CYQ3C = $mol_type_enforce<
ReturnType< Foo["owner"] >,
ReturnType< $mol_object["expanded"] >
>
export class Foo extends $mol_object {
indexed( id: any, next?: $mol_object ): $mol_object
owner( id: any, next?: any ): any
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctindexed*%3F%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctexpanded%20%3C%3D%3E%20owner*%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAAGM%3BAAAA%2CAAAA%2CEAAS%2CYAFX%2CGAEW%2CEAAI%2CKAAJ%2CIADA%3BAACT%2CEADS%2CyBACT%2CQADS%3BAAAA%3BAADX%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2C2BAAU%2CWAAV%2CIAAU%3BAACI%2CAAAA%2CyBAAQ%2CGAAR%2CIAAQ%3BAAFvB%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_legacy_value.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
b( next?: number ): number
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3Fv%20%3C%3D%3E%20b%3Fv%201%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAI%2CYADL%2CGACK%2CEAAI%2CCAAJ%2CIAAJ%2CIAAI%2CYADL%2CGACK%2CEAAI%2CCAAJ%3BAAAI%2CAAAA%2CYAAI%2CMAAJ%2CIAAI%3BAADb%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_localized_default_value.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
b( next?: string ): string
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20%3C%3D%3E%20b%3F%20%40%20%5C%5Csome1%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%3BAAAI%2CAAAA%2CYAAM%2CMAAN%2CIAAM%3BAADd%3BAADJ%3BAAAA%3B%22%7D
12 changes: 12 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_localized_in_object.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare namespace $ {

export class Foo extends $mol_object {
obj( ): ({
'loc?': ReturnType< Foo["outer"] >,
})
outer( next?: string ): string
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctobj%20*%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctloc%3F%20%3C%3D%3E%20outer%3F%20%40%20%5C%5Ctest1%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAAAA%2CAACH%2CWAAK%2CYAFP%2CGAEO%2CEAAI%2CKAAJ%2CIAAL%3BAADG%3BAACM%2CAAAA%2CgBAAU%2CMAAV%2CIAAU%3BAAFrB%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/bidi_bind_with_default_object.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
class( next?: ReturnType< Foo["owner"] > ): ReturnType< Foo["owner"] >
owner( next?: $mol_object ): $mol_object
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctclass%3F%20%3C%3D%3E%20owner%3F%20%24mol_object%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CgBAAO%2CYADR%2CGACQ%2CEAAI%2CKAAJ%2CIAAP%2CIAAO%2CYADR%2CGACQ%2CEAAI%2CKAAJ%3BAAAI%2CAAAA%2CgBAAO%2CWAAP%2CIAAO%3BAADnB%3BAADJ%3BAAAA%3B%22%7D
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
b( next?: any ): any
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20%3C%3D%3E%20b%3F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctb%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%2CIAAH%2CIAAG%2CYADJ%2CGACI%2CEAAI%2CCAAJ%3BAACH%2CAAAA%2CYAAG%2CGAAH%2CIAAG%3BAAFJ%3BAADJ%3BAAAA%3B%22%7D
11 changes: 11 additions & 0 deletions view/tree2/to/dts/test/left_bind_chaining.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ReturnType< Foo["b"] > ): ReturnType< Foo["b"] >
c( next?: any ): any
b( next?: ReturnType< Foo["c"] > ): ReturnType< Foo["c"] >
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20%3C%3D%20b%3F%20%3C%3D%20c%3F%20null%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%2CYADJ%2CGACI%2CEAAG%2CCAAH%2CIAAH%2CIAAG%2CYADJ%2CGACI%2CEAAG%2CCAAH%3BAAAS%2CAAAA%2CYAAG%2CGAAH%2CIAAG%3BAAAT%2CAAAA%2CYAAG%2CYADV%2CGACU%2CEAAG%2CCAAH%2CIAAH%2CIAAG%2CYADV%2CGACU%2CEAAG%2CCAAH%3BAADV%3BAADJ%3BAAAA%3B%22%7D
18 changes: 18 additions & 0 deletions view/tree2/to/dts/test/left_bind_in_array_and_object.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare namespace $ {

type $mol_object__rows_2B435VAM = $mol_type_enforce<
ReturnType< Foo["content"] >,
ReturnType< $mol_object["rows"] >
>
export class Foo extends $mol_object {
obj( ): ({
'prop': ReturnType< Foo["Obj"] >,
})
arr( ): readonly unknown[]
content( ): readonly unknown[]
Obj( ): $mol_object
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctobj%20*%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctprop%20%3C%3D%20Obj%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctarr%20%2F%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%3C%3D%20Obj%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctrows%20%3C%3D%20content%20%2F%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAAMO%3BAAAA%2CAAAA%2CEAAK%2CYALR%2CGAKQ%2CEAAG%2COAAH%2CIADC%3BAACN%2CEADM%2CyBACN%2CIADM%3BAAAA%3BAAJT%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%3BAAAA%2CAACH%2CWAAK%2CYAFP%2CGAEO%2CEAAG%2CGAAH%2CIAAL%3BAADG%3BAAEJ%2CAAAA%2CUAAI%3BAAEM%2CAAAA%2CcAAQ%3BAADd%2CAAAA%2CUAAI%3BAAJT%3BAADJ%3BAAAA%3B%22%7D
10 changes: 10 additions & 0 deletions view/tree2/to/dts/test/left_bind_read_only.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare namespace $ {

export class Foo extends $mol_object {
bar1( ): ReturnType< Foo["bar2"] >
bar2( next?: number ): number
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctbar1%20%3C%3D%20bar2%3F%201%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CWAAK%2CYADN%2CGACM%2CEAAG%2CIAAH%3BAAAG%2CAAAA%2CeAAM%2CMAAN%2CIAAM%3BAADf%3BAADJ%3BAAAA%3B%22%7D
15 changes: 15 additions & 0 deletions view/tree2/to/dts/test/left_bind_second_level_index.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare namespace $ {

type $mol_object__localized_2NYAWVBQ = $mol_type_enforce<
ReturnType< Foo["some"] >,
ReturnType< $mol_object["localized"] >
>
export class Foo extends $mol_object {
cls( id: any, ): ReturnType< Foo["owner"] >
some( id: any, next?: string ): string
owner( id: any, next?: $mol_object ): $mol_object
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctcls*%20%3C%3D%20owner*%3F%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctlocalized%20%3C%3D%20some*%3F%20%40%20%5C%5Cv1%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAAGM%3BAAAA%2CAAAA%2CEAAU%2CYAFZ%2CGAEY%2CEAAG%2CIAAH%2CIADK%3BAACf%2CEADe%2CyBACf%2CSADe%3BAAAA%3BAADjB%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CmBAAK%2CYADN%2CGACM%2CEAAG%2CKAAH%3BAACS%2CAAAA%2CwBAAU%2CMAAV%2CIAAU%3BAADhB%2CAAAA%2CyBAAQ%2CWAAR%2CIAAQ%3BAADjB%3BAADJ%3BAAAA%3B%22%7D
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare namespace $ {

type $mol_object__rows_ZZ2VUPVS = $mol_type_enforce<
ReturnType< Foo["content"] >,
ReturnType< $mol_object["rows"] >
>
export class Foo extends $mol_object {
content( ): number
Obj( ): $mol_object
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctcontent%20123%5Cn%5Ct%5Ct%5Ct%5Ct%5CtObj%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctrows%20%3C%3D%20content%20-%20321%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAAIM%3BAAAA%2CAAAA%2CEAAK%2CYAHP%2CGAGO%2CEAAG%2COAAH%2CIADF%3BAACH%2CEADG%2CyBACH%2CIADG%3BAAAA%3BAAFL%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CcAAQ%3BAACR%2CAAAA%2CUAAI%3BAAFL%3BAADJ%3BAAAA%3B%22%7D
19 changes: 19 additions & 0 deletions view/tree2/to/dts/test/right_bind_in_left_bind.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
declare namespace $ {

export class Foo extends $mol_object {
a( ): any
}

type Foo__a_7XFXZG27 = $mol_type_enforce<
ReturnType< Bar["b"] >,
ReturnType< Foo["a"] >
>
export class Bar extends $mol_object {
foo( ): ReturnType< Bar["Cls"] >
Cls( ): Foo
b: ( )=> ReturnType< Foo["a"] >
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%20null%5Cn%5Ct%5Ct%5Ct%5CtBar%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Ctfoo%20%3C%3D%20Cls%20Foo%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Cta%20%3D%3E%20b%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CQAAE%3BAADH%3BAADJ%3BAAKM%3BAAAA%2CAAAA%2CEAAE%2CYAFJ%2CGAEI%2CEAAG%2CCAAH%2CIADQ%3BAACV%2CEADU%2CiBACV%2CCADU%3BAAAA%3BAADZ%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CUAAI%2CYADL%2CGACK%2CEAAG%2CGAAH%3BAAAG%2CAAAA%2CUAAI%3BAACL%2CAAAA%2CGAAH%2CEAAG%2CGAAH%2CeAFJ%2CGAEI%2CEAAF%2CCAAE%3BAAFJ%3BAAHJ%3BAAAA%3B%22%7D
22 changes: 22 additions & 0 deletions view/tree2/to/dts/test/right_bind_indexed.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
declare namespace $ {

export class Foo extends $mol_object {
a( next?: ({
'some': number,
}) ): ({
'some': number,
})
}

type Foo__a_K7UUVX4U = $mol_type_enforce<
ReturnType< Bar["b"] >,
ReturnType< Foo["a"] >
>
export class Bar extends $mol_object {
Cls( id: any, ): Foo
b: ( id: any, )=> ReturnType< Foo["a"] >
}

}

//# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22%3F%22%5D%2C%22sourcesContent%22%3A%5B%22%5Cn%5Ct%5Ct%5Ct%5CtFoo%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5Cta%3F%20*%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Ctsome%20123%5Cn%5Ct%5Ct%5Ct%5CtBar%20%24mol_object%5Cn%5Ct%5Ct%5Ct%5Ct%5CtCls*%20Foo%5Cn%5Ct%5Ct%5Ct%5Ct%5Ct%5Cta%20%3D%3E%20b*%5Cn%5Ct%5Ct%5Ct%22%5D%2C%22mappings%22%3A%22%3B%3BAAAA%3BAAAA%3BAAAA%2CAACI%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CYAAG%3BAAAA%2CAACF%2CWAAK%2CMAAL%3BAADE%2CEAAH%2CIAAG%3BAAAA%2CAACF%2CWAAK%2CMAAL%3BAADE%3BAADJ%3BAADJ%3BAAMM%3BAAAA%2CAAAA%2CEAAE%2CYAFJ%2CGAEI%2CEAAG%2CCAAH%2CIADE%3BAACJ%2CEADI%2CiBACJ%2CCADI%3BAAAA%3BAADN%2CiBAAI%2CoBAAJ%3BAACC%2CAAAA%2CmBAAK%3BAACC%2CAAAA%2CGAAH%2CEAAG%2CYAAH%2CeAFJ%2CGAEI%2CEAAF%2CCAAE%3BAAFJ%3BAAJJ%3BAAAA%3B%22%7D
Loading

0 comments on commit ba4234e

Please sign in to comment.