File: fluentInterfaces.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 1,236 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
34
35
=== tests/cases/conformance/types/thisType/fluentInterfaces.ts ===
interface A {
>A : Symbol(A, Decl(fluentInterfaces.ts, 0, 0))

    foo(): this;
>foo : Symbol(A.foo, Decl(fluentInterfaces.ts, 0, 13))
}
interface B extends A {
>B : Symbol(B, Decl(fluentInterfaces.ts, 2, 1))
>A : Symbol(A, Decl(fluentInterfaces.ts, 0, 0))

    bar(): this;
>bar : Symbol(B.bar, Decl(fluentInterfaces.ts, 3, 23))
}
interface C extends B {
>C : Symbol(C, Decl(fluentInterfaces.ts, 5, 1))
>B : Symbol(B, Decl(fluentInterfaces.ts, 2, 1))

    baz(): this;
>baz : Symbol(C.baz, Decl(fluentInterfaces.ts, 6, 23))
}
var c: C;
>c : Symbol(c, Decl(fluentInterfaces.ts, 9, 3))
>C : Symbol(C, Decl(fluentInterfaces.ts, 5, 1))

var z = c.foo().bar().baz();  // Fluent pattern
>z : Symbol(z, Decl(fluentInterfaces.ts, 10, 3))
>c.foo().bar().baz : Symbol(C.baz, Decl(fluentInterfaces.ts, 6, 23))
>c.foo().bar : Symbol(B.bar, Decl(fluentInterfaces.ts, 3, 23))
>c.foo : Symbol(A.foo, Decl(fluentInterfaces.ts, 0, 13))
>c : Symbol(c, Decl(fluentInterfaces.ts, 9, 3))
>foo : Symbol(A.foo, Decl(fluentInterfaces.ts, 0, 13))
>bar : Symbol(B.bar, Decl(fluentInterfaces.ts, 3, 23))
>baz : Symbol(C.baz, Decl(fluentInterfaces.ts, 6, 23))