mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Add comment
This commit is contained in:
parent
c72861ebd7
commit
ed453ddcfc
@ -11205,6 +11205,8 @@ namespace ts {
|
||||
seen = c === node;
|
||||
}
|
||||
});
|
||||
// We may be here because of some extra junk between overloads that could not be parsed into a valid node.
|
||||
// In this case the subsequent node is not really consecutive (.pos !== node.end), and we must ignore it here.
|
||||
if (subsequentNode && subsequentNode.pos === node.end) {
|
||||
if (subsequentNode.kind === node.kind) {
|
||||
const errorNode: Node = (<FunctionLikeDeclaration>subsequentNode).name || subsequentNode;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user