File: assignToPrototype1.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (20 lines) | stat: -rw-r--r-- 785 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
=== tests/cases/compiler/assignToPrototype1.ts ===
declare class Point {
>Point : Symbol(Point, Decl(assignToPrototype1.ts, 0, 0))

  add(dx: number, dy: number): void;
>add : Symbol(Point.add, Decl(assignToPrototype1.ts, 0, 21))
>dx : Symbol(dx, Decl(assignToPrototype1.ts, 1, 6))
>dy : Symbol(dy, Decl(assignToPrototype1.ts, 1, 17))
}

Point.prototype.add = function(dx, dy) {
>Point.prototype.add : Symbol(Point.add, Decl(assignToPrototype1.ts, 0, 21))
>Point.prototype : Symbol(Point.prototype)
>Point : Symbol(Point, Decl(assignToPrototype1.ts, 0, 0))
>prototype : Symbol(Point.prototype)
>add : Symbol(Point.add, Decl(assignToPrototype1.ts, 0, 21))
>dx : Symbol(dx, Decl(assignToPrototype1.ts, 4, 31))
>dy : Symbol(dy, Decl(assignToPrototype1.ts, 4, 34))

};