We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f73af3a + 3a96923 commit 29fcd4aCopy full SHA for 29fcd4a
src/services/services.ts
@@ -6046,8 +6046,8 @@ module ts {
6046
6047
function processNode(node: Node) {
6048
// Only walk into nodes that intersect the requested span.
6049
- if (node && textSpanIntersectsWith(span, node.getStart(), node.getWidth())) {
6050
- if (node.kind === SyntaxKind.Identifier && node.getWidth() > 0) {
+ if (node && textSpanIntersectsWith(span, node.getFullStart(), node.getFullWidth())) {
+ if (node.kind === SyntaxKind.Identifier && !nodeIsMissing(node)) {
6051
let symbol = typeChecker.getSymbolAtLocation(node);
6052
if (symbol) {
6053
let type = classifySymbol(symbol, getMeaningFromLocation(node));
0 commit comments