File: assignToFn.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 (24 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== tests/cases/compiler/assignToFn.ts ===
module M {
>M : Symbol(M, Decl(assignToFn.ts, 0, 0))

    interface I {
>I : Symbol(I, Decl(assignToFn.ts, 0, 10))

	f(n:number):boolean;
>f : Symbol(I.f, Decl(assignToFn.ts, 1, 17))
>n : Symbol(n, Decl(assignToFn.ts, 2, 3))
    }

    var x:I={ f:function(n) { return true; } };
>x : Symbol(x, Decl(assignToFn.ts, 5, 7))
>I : Symbol(I, Decl(assignToFn.ts, 0, 10))
>f : Symbol(f, Decl(assignToFn.ts, 5, 13))
>n : Symbol(n, Decl(assignToFn.ts, 5, 25))

    x.f="hello";
>x.f : Symbol(I.f, Decl(assignToFn.ts, 1, 17))
>x : Symbol(x, Decl(assignToFn.ts, 5, 7))
>f : Symbol(I.f, Decl(assignToFn.ts, 1, 17))
}