|
| 1 | +=== tests/cases/compiler/deps.ts === |
| 2 | +export function Input(): any { } |
| 3 | +>Input : Symbol(Input, Decl(deps.ts, 0, 0)) |
| 4 | + |
| 5 | +export class TemplateRef { } |
| 6 | +>TemplateRef : Symbol(TemplateRef, Decl(deps.ts, 0, 32)) |
| 7 | + |
| 8 | +=== tests/cases/compiler/index.ts === |
| 9 | +import { Input, TemplateRef } from './deps'; |
| 10 | +>Input : Symbol(Input, Decl(index.ts, 0, 8)) |
| 11 | +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) |
| 12 | + |
| 13 | +export class MyComponent { |
| 14 | +>MyComponent : Symbol(MyComponent, Decl(index.ts, 0, 44)) |
| 15 | + |
| 16 | + _ref: TemplateRef; |
| 17 | +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) |
| 18 | +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) |
| 19 | + |
| 20 | + @Input() |
| 21 | +>Input : Symbol(Input, Decl(index.ts, 0, 8)) |
| 22 | + |
| 23 | + get ref() { return this._ref; } |
| 24 | +>ref : Symbol(MyComponent.ref, Decl(index.ts, 3, 22), Decl(index.ts, 6, 35)) |
| 25 | +>this._ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) |
| 26 | +>this : Symbol(MyComponent, Decl(index.ts, 0, 44)) |
| 27 | +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) |
| 28 | + |
| 29 | + set ref(value: TemplateRef) { this._ref = value; } |
| 30 | +>ref : Symbol(MyComponent.ref, Decl(index.ts, 3, 22), Decl(index.ts, 6, 35)) |
| 31 | +>value : Symbol(value, Decl(index.ts, 7, 12)) |
| 32 | +>TemplateRef : Symbol(TemplateRef, Decl(index.ts, 0, 15)) |
| 33 | +>this._ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) |
| 34 | +>this : Symbol(MyComponent, Decl(index.ts, 0, 44)) |
| 35 | +>_ref : Symbol(MyComponent._ref, Decl(index.ts, 2, 26)) |
| 36 | +>value : Symbol(value, Decl(index.ts, 7, 12)) |
| 37 | +} |
| 38 | + |
0 commit comments