refactor(core): Removed readonly getters and changed to readonly (#19225)

variables
This commit is contained in:
tinayuangao
2017-09-29 00:36:29 +08:00
committed by Victor Berchet
parent 3aa3d5c548
commit 2b84b86fc0
14 changed files with 64 additions and 46 deletions

View File

@ -171,21 +171,13 @@ function invertMap(obj: {[name: string]: string}): {[name: string]: string} {
class OverrideKindSymbol implements Symbol {
public readonly kind: string;
constructor(private sym: Symbol, kindOverride: string) { this.kind = kindOverride; }
get name(): string { return this.sym.name; }
get language(): string { return this.sym.language; }
get type(): Symbol|undefined { return this.sym.type; }
get container(): Symbol|undefined { return this.sym.container; }
get public(): boolean { return this.sym.public; }
get callable(): boolean { return this.sym.callable; }
get nullable(): boolean { return this.sym.nullable; }
get definition(): Definition { return this.sym.definition; }
members() { return this.sym.members(); }