File: issue-9681.ts

package info (click to toggle)
rust-swc-core 35.0.0~ds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,816 kB
  • sloc: javascript: 873; xml: 538; sh: 358; makefile: 35; python: 5
file content (40 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class A {
    foo = 1
    private ["bar"] = 2;

    x = 1
    public ["y"](){}

    z = 1
    public static ["w"](){}
}

class Test {
    x = 1
    public *f() {}
}

class Test2 {
    out = 'out'
    public in
    public name
}

class Test3 {
    out = 'out'
    public in: any
    name;

    x = 'x'
    public instanceof: any
    String: any
}

class Test4 {
    set: any
    a(x) {}
    get: any
    b() {}
    static: any
    c(x) {}
}