File: staticFactory1.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (33 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (7)
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
=== tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/staticFactory1.ts ===
class Base {
>Base : Symbol(Base, Decl(staticFactory1.ts, 0, 0))

    foo() { return 1; }
>foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))

    static create() {
>create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))

        return new this();
>this : Symbol(Base, Decl(staticFactory1.ts, 0, 0))
    }
}

class Derived extends Base {
>Derived : Symbol(Derived, Decl(staticFactory1.ts, 5, 1))
>Base : Symbol(Base, Decl(staticFactory1.ts, 0, 0))

    foo() { return 2; }
>foo : Symbol(Derived.foo, Decl(staticFactory1.ts, 7, 28))
}
var d = Derived.create(); 
>d : Symbol(d, Decl(staticFactory1.ts, 10, 3))
>Derived.create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))
>Derived : Symbol(Derived, Decl(staticFactory1.ts, 5, 1))
>create : Symbol(Base.create, Decl(staticFactory1.ts, 1, 23))

d.foo();  
>d.foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))
>d : Symbol(d, Decl(staticFactory1.ts, 10, 3))
>foo : Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12))