File: constructorFunctions2.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 (59 lines) | stat: -rw-r--r-- 2,048 bytes parent folder | download
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
53
54
55
56
57
58
59
=== tests/cases/conformance/salsa/node.d.ts ===
declare function require(id: string): any;
>require : Symbol(require, Decl(node.d.ts, 0, 0))
>id : Symbol(id, Decl(node.d.ts, 0, 25))

declare var module: any, exports: any;
>module : Symbol(module, Decl(node.d.ts, 1, 11))
>exports : Symbol(exports, Decl(node.d.ts, 1, 24))

=== tests/cases/conformance/salsa/index.js ===
const A = require("./other");
>A : Symbol(A, Decl(index.js, 0, 5))
>require : Symbol(require, Decl(node.d.ts, 0, 0))
>"./other" : Symbol("tests/cases/conformance/salsa/other", Decl(other.js, 0, 0))

const a = new A().id;
>a : Symbol(a, Decl(index.js, 1, 5))
>new A().id : Symbol(A.id, Decl(other.js, 0, 14))
>A : Symbol(A, Decl(index.js, 0, 5))
>id : Symbol(A.id, Decl(other.js, 0, 14))

const B = function() { this.id = 1; }
>B : Symbol(B, Decl(index.js, 3, 5))
>id : Symbol(B.id, Decl(index.js, 3, 22))

B.prototype.m = function() { this.x = 2; }
>B.prototype : Symbol(B.m, Decl(index.js, 3, 37))
>B : Symbol(B, Decl(index.js, 3, 5))
>prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --))
>m : Symbol(B.m, Decl(index.js, 3, 37))
>this.x : Symbol(B.x, Decl(index.js, 4, 28))
>this : Symbol(B, Decl(index.js, 3, 9))
>x : Symbol(B.x, Decl(index.js, 4, 28))

const b = new B();
>b : Symbol(b, Decl(index.js, 5, 5))
>B : Symbol(B, Decl(index.js, 3, 5))

b.id;
>b.id : Symbol(B.id, Decl(index.js, 3, 22))
>b : Symbol(b, Decl(index.js, 5, 5))
>id : Symbol(B.id, Decl(index.js, 3, 22))

b.x;
>b.x : Symbol(B.x, Decl(index.js, 4, 28))
>b : Symbol(b, Decl(index.js, 5, 5))
>x : Symbol(B.x, Decl(index.js, 4, 28))

=== tests/cases/conformance/salsa/other.js ===
function A() { this.id = 1; }
>A : Symbol(A, Decl(other.js, 0, 0))
>id : Symbol(A.id, Decl(other.js, 0, 14))

module.exports = A;
>module.exports : Symbol("tests/cases/conformance/salsa/other", Decl(other.js, 0, 0))
>module : Symbol(export=, Decl(other.js, 0, 29))
>exports : Symbol(export=, Decl(other.js, 0, 29))
>A : Symbol(A, Decl(other.js, 0, 0))