mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Find tagless JSDoc as preceding token (#39912)
This commit is contained in:
1 parent
2ebdf9fdce
commit
7f4e1b699a
2 files changed
+21
No files matched your search
@@ -1217,6 +1217,10 @@ namespace ts {
|
||||
}
|
||||
|
||||
const children = n.getChildren(sourceFile);
|
||||
if (children.length === 0) {
|
||||
return n;
|
||||
}
|
||||
|
||||
const candidate = findRightmostChildNodeWithTokens(children, /*exclusiveStartPosition*/ children.length, sourceFile);
|
||||
return candidate && findRightmostToken(candidate, sourceFile);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user