feat(language-service): support TS2.2 plugin model

This commit is contained in:
Ryan Cavanaugh
2017-01-06 20:43:17 -08:00
committed by Matias Niemelä
parent e5c6bb4286
commit 99aa49ab6c
6 changed files with 149 additions and 85 deletions

View File

@ -84,7 +84,7 @@ export class StaticReflector implements ReflectorReader {
const classMetadata = this.getTypeMetadata(type);
if (classMetadata['extends']) {
const parentType = this.simplify(type, classMetadata['extends']);
if (parentType instanceof StaticSymbol) {
if (parentType && (parentType instanceof StaticSymbol)) {
const parentAnnotations = this.annotations(parentType);
annotations.push(...parentAnnotations);
}