You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
This will require invoking the type checker. It should address #457.
Proposal
Rule walkers can get a TypeChecker via languageService.getProgram().getTypeChecker(). This object should be saved as a private member of the walker class (similar to what we do for languageService in NoUnusedVariablesWalker).
VariableNameWalker#handleVariableName should check if the given identifier is a constructor and return early if it is.
utils.ts should get a new function called isTypeFlagSet which does something similar to isNodeFlagSet, but for type flags.
The text was updated successfully, but these errors were encountered:
This will require invoking the type checker. It should address #457.
Proposal
Rule walkers can get a
TypeChecker
vialanguageService.getProgram().getTypeChecker()
. This object should be saved as a private member of the walker class (similar to what we do forlanguageService
inNoUnusedVariablesWalker
).VariableNameWalker#handleVariableName
should check if the given identifier is a constructor and return early if it is.utils.ts
should get a new function calledisTypeFlagSet
which does something similar toisNodeFlagSet
, but for type flags.The text was updated successfully, but these errors were encountered: