fix(language-service): do not crash when hovering over a label definitions (#17974)

Fixes: #17972
This commit is contained in:
Chuck Jazdzewski
2017-07-07 09:46:18 -06:00
committed by Jason Aden
parent ae27af7399
commit 3b2d2c467a
2 changed files with 11 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export function locateSymbol(info: TemplateInfo): SymbolInfo|undefined {
}
},
visitReference(ast) {
symbol = info.template.query.getTypeSymbol(tokenReference(ast.value));
symbol = ast.value && info.template.query.getTypeSymbol(tokenReference(ast.value));
span = spanOf(ast);
},
visitVariable(ast) {},