Repository: TypeScript
Issue: Crash in inlay hints: "Cannot read property 'kind' of undefined"
Labels: Bug,Crash,Domain: Inlay Hints

Isolated from reports in https://github.com/microsoft/tsserverfuzzer/issues/337

```js
/**
 * @typedef {Object} Callbacks
 * @property {function(UnknownType)} doThing - Called when DFS leaves the node.
 */

/**
 * @param callbacks {Callbacks}
 */
export function foo(callbacks) {
  while (Math.random()) {
    callbacks.doThing(someUnknown);
  }
}
```

Partial:

```
Cannot read property 'kind' of undefined
    at isIdentifier (tsserverlibrary.js:27849:21)
    at isParameterDeclarationWithIdentifierName (tsserverlibrary.js:74352:93)
    at getParameterIdentifierNameAtPosition (tsserverlibrary.js:74329:24)
    at visitCallOrNewExpression (tsserverlibrary.js:138312:54)
    at visitor (tsserverlibrary.js:138228:21)
    at visitNode (tsserverlibrary.js:29745:24)
    at forEachChild (tsserverlibrary.js:30008:24)
    at visitor (tsserverlibrary.js:138238:27)
    at visitNodes (tsserverlibrary.js:29754:30)
    at forEachChild (tsserverlibrary.js:29995:24)
```

Full:

```
<semantic> Response received: provideInlayHints (1729). Request took 1 ms. Success: false . Message: Error processing request. Cannot read property 'kind' of undefined
TypeError: Cannot read property 'kind' of undefined
    at Object.isIdentifier (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:27598:21)
    at isParameterDeclarationWithIdentifierName (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:73751:93)
    at Object.getParameterIdentifierNameAtPosition (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:73728:24)
    at visitCallOrNewExpression (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137116:54)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137032:21)
    at visitNode (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29470:24)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29731:24)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at visitNodes (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29479:30)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29720:24)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at visitNode (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29470:24)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29741:21)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at visitNodes (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29479:30)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29720:24)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at visitNode (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29470:24)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29600:21)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at visitNodes (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29479:30)
    at Object.forEachChild (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29722:24)
    at visitor (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:137042:27)
    at Object.provideInlayHints (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:136999:13)
    at Proxy.provideInlayHints (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:157599:34)
    at IOSession.Session.provideInlayHints (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:167903:58)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:167288:61)
    at USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168880:88
    at IOSession.Session.executeWithRequestId (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168871:28)
    at IOSession.Session.executeCommand (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168880:33)
    at IOSession.Session.onMessage (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168906:35)
    at Interface.<anonymous> (USERROOT\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:171511:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

```