* getDeclarationIdentifier handles undefined name getNameOfDeclaration actually doesn't handle all declarations, only those that produce names that could be reasonably used as an identifier. Until now, getDeclarationIdentifier assumed that getNameOfDeclaration always returned a name. This caused crashes whenever we tried to get the name of something like a Constructor. * Add test and baselines * getNameOfDeclaration can return undefined This requires all callers to handle it, which turns out now to be too disruptive. * Fix lint
13 lines
215 B
TypeScript
13 lines
215 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: bug25104.js
|
|
class C {
|
|
/**
|
|
* @typedef {C~A} C~B
|
|
* @typedef {object} C~A
|
|
*/
|
|
/** @param {C~A} o */
|
|
constructor(o) {
|
|
}
|
|
}
|