Skip to content

Commit a98ec09

Browse files
everything should be working now
1 parent ca13f28 commit a98ec09

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(module
2+
(type $0 (func (param i32)))
3+
(global $parameter-decorators/expression i32 (i32.const 32))
4+
(global $parameter-decorators/arrow i32 (i32.const 64))
5+
(global $~lib/memory/__data_end i32 (i32.const 76))
6+
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 32844))
7+
(global $~lib/memory/__heap_base i32 (i32.const 32844))
8+
(memory $0 1)
9+
(data $0 (i32.const 12) "\1c\00\00\00\00\00\00\00\00\00\00\00\04\00\00\00\08\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00")
10+
(data $1 (i32.const 44) "\1c\00\00\00\00\00\00\00\00\00\00\00\04\00\00\00\08\00\00\00\02\00\00\00\00\00\00\00\00\00\00\00")
11+
(table $0 3 3 funcref)
12+
(elem $0 (i32.const 1) $start:parameter-decorators~anonymous|0 $start:parameter-decorators~anonymous|1)
13+
(export "memory" (memory $0))
14+
(func $start:parameter-decorators~anonymous|0 (param $value i32)
15+
)
16+
(func $start:parameter-decorators~anonymous|1 (param $value i32)
17+
)
18+
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"asc_flags": [
3+
]
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(module
2+
(memory $0 1)
3+
(data $0 (i32.const 1036) "\1c")
4+
(data $0.1 (i32.const 1048) "\04\00\00\00\08\00\00\00\01")
5+
(data $1 (i32.const 1068) "\1c")
6+
(data $1.1 (i32.const 1080) "\04\00\00\00\08\00\00\00\02")
7+
(export "memory" (memory $0))
8+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function regular(@first value: i32): void {}
2+
function multiParam(@first huh: string, @second(123, 456) works: i32, @third("can pass a string?") hello: string): void {}
3+
function rest(@rest ...values: i32[]): void {}
4+
function withthis(@self this: i32, value: i32): i32 { return this; }
5+
6+
class Box {
7+
constructor(@field public value: i32) {}
8+
method(@arg value: i32): void {}
9+
}
10+
11+
type Callback = (@arg value: i32) => void;
12+
const expression = function(@arg value: i32): void {};
13+
const arrow = (@arg value: i32): void => {};
14+
namespace ns {
15+
export function nested(@arg value: i32): void {}
16+
}

0 commit comments

Comments
 (0)