Skip to content

Commit a2f0cbf

Browse files
committed
Exposed TypeChecker.resolveName API to public along with SymbolFlags.All
Related to #46793
1 parent 382de91 commit a2f0cbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5238,7 +5238,7 @@ export interface TypeChecker {
52385238
* @internal
52395239
*/
52405240
getAllPossiblePropertiesOfTypes(type: readonly Type[]): Symbol[];
5241-
/** @internal */ resolveName(name: string, location: Node | undefined, meaning: SymbolFlags, excludeGlobals: boolean): Symbol | undefined;
5241+
resolveName(name: string, location: Node | undefined, meaning: SymbolFlags, excludeGlobals: boolean): Symbol | undefined;
52425242
/** @internal */ getJsxNamespace(location?: Node): string;
52435243
/** @internal */ getJsxFragmentFactory(location: Node): string | undefined;
52445244

@@ -5744,7 +5744,6 @@ export const enum SymbolFlags {
57445744
Transient = 1 << 25, // Transient symbol (created during type check)
57455745
Assignment = 1 << 26, // Assignment treated as declaration (eg `this.prop = 1`)
57465746
ModuleExports = 1 << 27, // Symbol for CommonJS `module` of `module.exports`
5747-
/** @internal */
57485747
All = FunctionScopedVariable | BlockScopedVariable | Property | EnumMember | Function | Class | Interface | ConstEnum | RegularEnum | ValueModule | NamespaceModule | TypeLiteral
57495748
| ObjectLiteral | Method | Constructor | GetAccessor | SetAccessor | Signature | TypeParameter | TypeAlias | ExportValue | Alias | Prototype | ExportStar | Optional | Transient,
57505749

tests/baselines/reference/api/typescript.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6861,6 +6861,7 @@ declare namespace ts {
68616861
* True if this type is assignable to `ReadonlyArray<any>`.
68626862
*/
68636863
isArrayLikeType(type: Type): boolean;
6864+
resolveName(name: string, location: Node | undefined, meaning: SymbolFlags, excludeGlobals: boolean): Symbol | undefined;
68646865
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
68656866
/**
68666867
* Depending on the operation performed, it may be appropriate to throw away the checker
@@ -7000,6 +7001,7 @@ declare namespace ts {
70007001
Transient = 33554432,
70017002
Assignment = 67108864,
70027003
ModuleExports = 134217728,
7004+
All = 67108863,
70037005
Enum = 384,
70047006
Variable = 3,
70057007
Value = 111551,

0 commit comments

Comments
 (0)