21 lines
779 B
Plaintext
21 lines
779 B
Plaintext
=== tests/cases/compiler/assignToPrototype1.ts ===
|
|
declare class Point {
|
|
>Point : Symbol(Point, Decl(assignToPrototype1.ts, 0, 0))
|
|
|
|
add(dx: number, dy: number): void;
|
|
>add : Symbol(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))
|
|
|
|
};
|