symbolDisplay comment fix: "experts" vs "exports"
This commit is contained in:
parent
02e487ac08
commit
523ced704f
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ namespace ts.SymbolDisplay {
|
||||||
if (!documentation) {
|
if (!documentation) {
|
||||||
documentation = symbol.getDocumentationComment();
|
documentation = symbol.getDocumentationComment();
|
||||||
if (documentation.length === 0 && symbol.flags & SymbolFlags.Property) {
|
if (documentation.length === 0 && symbol.flags & SymbolFlags.Property) {
|
||||||
// For some special property access expressions like `experts.foo = foo` or `module.exports.foo = foo`
|
// For some special property access expressions like `exports.foo = foo` or `module.exports.foo = foo`
|
||||||
// there documentation comments might be attached to the right hand side symbol of their declarations.
|
// there documentation comments might be attached to the right hand side symbol of their declarations.
|
||||||
// The pattern of such special property access is that the parent symbol is the symbol of the file.
|
// The pattern of such special property access is that the parent symbol is the symbol of the file.
|
||||||
if (symbol.parent && forEach(symbol.parent.declarations, declaration => declaration.kind === SyntaxKind.SourceFile)) {
|
if (symbol.parent && forEach(symbol.parent.declarations, declaration => declaration.kind === SyntaxKind.SourceFile)) {
|
||||||
|
|
Loading…
Reference in a new issue