mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Find tagless JSDoc as preceding token (#39912)
This commit is contained in:
@@ -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