31 lines
931 B
Text
31 lines
931 B
Text
=== tests/cases/compiler/objectIndexer.ts ===
|
|
export interface Callback {
|
|
>Callback : Symbol(Callback, Decl(objectIndexer.ts, 0, 0))
|
|
|
|
(value: any): void;
|
|
>value : Symbol(value, Decl(objectIndexer.ts, 1, 5))
|
|
}
|
|
|
|
interface IMap {
|
|
>IMap : Symbol(IMap, Decl(objectIndexer.ts, 2, 1))
|
|
|
|
[s: string]: Callback;
|
|
>s : Symbol(s, Decl(objectIndexer.ts, 5, 5))
|
|
>Callback : Symbol(Callback, Decl(objectIndexer.ts, 0, 0))
|
|
}
|
|
|
|
class Emitter {
|
|
>Emitter : Symbol(Emitter, Decl(objectIndexer.ts, 6, 1))
|
|
|
|
private listeners: IMap;
|
|
>listeners : Symbol(Emitter.listeners, Decl(objectIndexer.ts, 8, 15))
|
|
>IMap : Symbol(IMap, Decl(objectIndexer.ts, 2, 1))
|
|
|
|
constructor () {
|
|
this.listeners = {};
|
|
>this.listeners : Symbol(Emitter.listeners, Decl(objectIndexer.ts, 8, 15))
|
|
>this : Symbol(Emitter, Decl(objectIndexer.ts, 6, 1))
|
|
>listeners : Symbol(Emitter.listeners, Decl(objectIndexer.ts, 8, 15))
|
|
}
|
|
}
|
|
|