fix(language-service): do not crash when hovering over a label definitions (#17974)
Fixes: #17972
This commit is contained in:

committed by
Jason Aden

parent
ae27af7399
commit
3b2d2c467a
@ -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) {},
|
||||
|
Reference in New Issue
Block a user