File: FunctionAndModuleWithSameNameAndDifferentCommonRoot.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 (52 lines) | stat: -rw-r--r-- 1,749 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=== tests/cases/conformance/internalModules/DeclarationMerging/function.ts ===
module A {
>A : Symbol(A, Decl(function.ts, 0, 0))

    export function Point() {
>Point : Symbol(Point, Decl(function.ts, 0, 10))

        return { x: 0, y: 0 };
>x : Symbol(x, Decl(function.ts, 2, 16))
>y : Symbol(y, Decl(function.ts, 2, 22))
    }
}

=== tests/cases/conformance/internalModules/DeclarationMerging/module.ts ===
module B {
>B : Symbol(B, Decl(module.ts, 0, 0))

    export module Point {
>Point : Symbol(Point, Decl(module.ts, 0, 10))

        export var Origin = { x: 0, y: 0 };
>Origin : Symbol(Origin, Decl(module.ts, 2, 18))
>x : Symbol(x, Decl(module.ts, 2, 29))
>y : Symbol(y, Decl(module.ts, 2, 35))
    }
}

=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
var fn: () => { x: number; y: number };
>fn : Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3))
>x : Symbol(x, Decl(test.ts, 0, 15))
>y : Symbol(y, Decl(test.ts, 0, 26))

var fn = A.Point;
>fn : Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3))
>A.Point : Symbol(A.Point, Decl(function.ts, 0, 10))
>A : Symbol(A, Decl(function.ts, 0, 0))
>Point : Symbol(A.Point, Decl(function.ts, 0, 10))

var cl: { x: number; y: number; }
>cl : Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3))
>x : Symbol(x, Decl(test.ts, 3, 9))
>y : Symbol(y, Decl(test.ts, 3, 20))

var cl = B.Point.Origin;
>cl : Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3))
>B.Point.Origin : Symbol(B.Point.Origin, Decl(module.ts, 2, 18))
>B.Point : Symbol(B.Point, Decl(module.ts, 0, 10))
>B : Symbol(B, Decl(module.ts, 0, 0))
>Point : Symbol(B.Point, Decl(module.ts, 0, 10))
>Origin : Symbol(B.Point.Origin, Decl(module.ts, 2, 18))