Skip to content

docs(compiler): fix four JSDoc @param errors in checker.ts#63669

Closed
CYANO-01 wants to merge 1 commit into
microsoft:mainfrom
CYANO-01:docs/fix-checker-jsdoc-param-mismatches
Closed

docs(compiler): fix four JSDoc @param errors in checker.ts#63669
CYANO-01 wants to merge 1 commit into
microsoft:mainfrom
CYANO-01:docs/fix-checker-jsdoc-param-mismatches

Conversation

@CYANO-01

Copy link
Copy Markdown

Problem

Four JSDoc documentation errors found in src/compiler/checker.ts, all docs-only — no runtime behaviour changes.

1. Swapped {type} and name in getAccessibleSymbolChainFromSymbolTable

// Before
* @param {ignoreQualification} boolean Set when...
// After
* @param {boolean} ignoreQualification Set when...

The JSDoc tag format is @param {type} name description. Here the identifier name was placed in braces and the type was written as the name, making it unreadable by JSDoc tooling.

2. Typo in @param name for isSymbolAccessible

// Before
* @param shouldComputeAliasToMakeVisible ... to be mark visible ...
// After
* @param shouldComputeAliasesToMakeVisible ... to be marked visible ...

The documented name shouldComputeAliasToMakeVisible (no s) does not match the actual parameter shouldComputeAliasesToMakeVisible. Also fixed adjacent grammar: "mark" → "marked".

3. Stale @param name in getIndexTypeForMappedType

// Before
* @param noIndexSignatures Indicates if _string_ index signatures...
// After
* @param indexFlags Flags controlling index type resolution; use IndexFlags.NoIndexSignatures...

The parameter was renamed from noIndexSignatures: boolean to indexFlags: IndexFlags but the JSDoc was not updated.

4. Ghost @param key in copySymbol

// Removed
* @param key a key for storing in symbol table; if undefined, use symbol.name

copySymbol(symbol: Symbol, meaning: SymbolFlags) has no key parameter; the line was left over from an earlier signature.


All four are docs-only changes. No runtime behaviour is affected.

Four documentation-only fixes in src/compiler/checker.ts:

1. Fix swapped JSDoc type/name in getAccessibleSymbolChainFromSymbolTable:
   `@param {ignoreQualification} boolean` → `@param {boolean} ignoreQualification`

2. Fix @param name typo in isSymbolAccessible JSDoc:
   `shouldComputeAliasToMakeVisible` → `shouldComputeAliasesToMakeVisible`
   (matches the actual parameter name and description fix: 'mark' → 'marked')

3. Fix stale @param name in getIndexTypeForMappedType JSDoc:
   `noIndexSignatures` → `indexFlags` (the parameter was renamed but doc was not updated)

4. Remove ghost @param key from copySymbol JSDoc:
   copySymbol(symbol, meaning) has no `key` parameter; the doc line was left over
   from an earlier signature.

No runtime behaviour is affected.
Copilot AI review requested due to automatic review settings July 22, 2026 16:05
@typescript-automation typescript-automation Bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jul 22, 2026
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Jul 22, 2026
@typescript-automation

Copy link
Copy Markdown

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

1 similar comment
@typescript-automation

Copy link
Copy Markdown

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Ready to approve

The changes are documentation-only and correct in intent, with only minor wording/grammar nits noted.

Pull request overview

This PR fixes four JSDoc @param documentation inaccuracies in src/compiler/checker.ts (type/name ordering, stale/mismatched parameter names, and removal of a non-existent parameter), with no intended runtime behavior changes.

Changes:

  • Corrected @param type/name ordering for ignoreQualification in getAccessibleSymbolChainFromSymbolTable.
  • Updated mismatched/stale @param names in isSymbolAccessible and getIndexTypeForMappedType.
  • Removed a “ghost” @param key entry from copySymbol’s JSDoc.
File summaries
File Description
src/compiler/checker.ts Fixes several incorrect/stale JSDoc @param entries to match current function signatures.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Low

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread src/compiler/checker.ts
* @param enclosingDeclaration a Node containing reference to the symbol
* @param meaning a SymbolFlags to check if such meaning of the symbol is accessible
* @param shouldComputeAliasToMakeVisible a boolean value to indicate whether to return aliases to be mark visible in case the symbol is accessible
* @param shouldComputeAliasesToMakeVisible a boolean value to indicate whether to return aliases to be marked visible in case the symbol is accessible
Comment thread src/compiler/checker.ts
Comment on lines 49836 to 49837
* Copy the given symbol into symbol tables if the symbol has the given meaning
* and it doesn't already existed in the symbol table
@jakebailey

Copy link
Copy Markdown
Member

The TypeScript repo is closed for development; PR should be in the typescript-go repo. Please see the top section of CONTRIBUTING.md and pinned issue #62963.

@jakebailey jakebailey closed this Jul 22, 2026
@github-project-automation github-project-automation Bot moved this from Not started to Done in PR Backlog Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants