File: sourceMapValidationDestructuringVariableStatement.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 (69 lines) | stat: -rw-r--r-- 4,187 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
=== tests/cases/compiler/sourceMapValidationDestructuringVariableStatement.ts ===
interface Robot {
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 0))

    name: string;
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 17))

    skill: string;
>skill : Symbol(Robot.skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 1, 17))
}
declare var console: {
>console : Symbol(console, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 11))

    log(msg: string): void;
>log : Symbol(log, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 22))
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringVariableStatement.ts, 5, 8))
}
var hello = "hello";
>hello : Symbol(hello, Decl(sourceMapValidationDestructuringVariableStatement.ts, 7, 3))

var robotA: Robot = { name: "mower", skill: "mowing" };
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringVariableStatement.ts, 8, 3))
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 0))
>name : Symbol(name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 8, 21))
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 8, 36))

var robotB: Robot = { name: "trimmer", skill: "trimming" };
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 9, 3))
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 0))
>name : Symbol(name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 9, 21))
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 9, 38))

var { name: nameA } = robotA;
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 17))
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringVariableStatement.ts, 10, 5))
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringVariableStatement.ts, 8, 3))

var { name: nameB, skill: skillB } = robotB;
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 0, 17))
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 11, 5))
>skill : Symbol(Robot.skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 1, 17))
>skillB : Symbol(skillB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 11, 18))
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 9, 3))

var { name: nameC, skill: skillC } = { name: "Edger", skill: "cutting edges" };
>name : Symbol(name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 38))
>nameC : Symbol(nameC, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 5))
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 53))
>skillC : Symbol(skillC, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 18))
>name : Symbol(name, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 38))
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 53))

if (nameA == nameB) {
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringVariableStatement.ts, 10, 5))
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 11, 5))

    console.log(skillB);
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 22))
>console : Symbol(console, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 11))
>log : Symbol(log, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 22))
>skillB : Symbol(skillB, Decl(sourceMapValidationDestructuringVariableStatement.ts, 11, 18))
}
else {
    console.log(nameC);
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 22))
>console : Symbol(console, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 11))
>log : Symbol(log, Decl(sourceMapValidationDestructuringVariableStatement.ts, 4, 22))
>nameC : Symbol(nameC, Decl(sourceMapValidationDestructuringVariableStatement.ts, 12, 5))
}