File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
src/compiler/phases/1-parse
tests/runtime-runes/samples/typescript Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ const visitors = {
74
74
TSEnumDeclaration ( ) {
75
75
return b . empty ;
76
76
} ,
77
+ TSParameterProperty ( node ) {
78
+ return node . parameter ;
79
+ } ,
77
80
Identifier ( node ) {
78
81
if ( node . typeAnnotation ) {
79
82
return {
Original file line number Diff line number Diff line change 1
1
<script context =" module" lang =" ts" >
2
- interface Hello { message: ' hello' }
2
+ interface Hello {
3
+ message: ' hello' ;
4
+ }
3
5
type Goodbye = { message: ' goodbye' };
4
6
5
7
function this_fn(this : any ) {
6
8
console .log (this );
7
9
}
8
10
11
+ class Foo {
12
+ constructor (public readonly name : string ) {}
13
+ }
14
+
9
15
export type { Hello };
10
16
</script >
11
17
19
25
} satisfies Goodbye;
20
26
</script >
21
27
22
- <button
23
- on:click ={(e : MouseEvent ) => {
28
+ <button on:click ={(e : MouseEvent ) => {
24
29
const next: number = count + 1 ;
25
30
count = next ! as number ;
26
31
}}
27
- >clicks: {count }</button >
32
+ >clicks: {count }</button
33
+ >
You can’t perform that action at this time.
0 commit comments