Skip to content

Commit ee7a872

Browse files
Merge pull request #146 from jakebailey/bloomberg-isolated-declarations-errors-fix-3
Make isEntityNameVisible have the same parameter order
2 parents 102ebf7 + 9a073be commit ee7a872

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
14841484
var emitResolver = createResolver();
14851485
var nodeBuilder = createNodeBuilder();
14861486
var syntacticNodeBuilder = createSyntacticTypeNodeBuilder(compilerOptions, {
1487-
isEntityNameVisible: (enclosingDeclaration, entityName, shouldComputeAliasToMakeVisible) => isEntityNameVisible(entityName, enclosingDeclaration, shouldComputeAliasToMakeVisible),
1487+
isEntityNameVisible,
14881488
isExpandoFunctionDeclaration,
14891489
isNonNarrowedBindableName,
14901490
getAllAccessorDeclarations: getAllAccessorDeclarationsForDeclaration,

src/compiler/expressionToTypeNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export function createSyntacticTypeNodeBuilder(options: CompilerOptions, resolve
372372
context.tracker.reportInferenceFallback(prop.name);
373373
}
374374
else if (isEntityNameExpression(prop.name.expression)) {
375-
const visibilityResult = resolver.isEntityNameVisible(context.enclosingDeclaration!, prop.name.expression, /*shouldComputeAliasToMakeVisible*/ false);
375+
const visibilityResult = resolver.isEntityNameVisible(prop.name.expression, context.enclosingDeclaration!, /*shouldComputeAliasToMakeVisible*/ false);
376376
if (visibilityResult.accessibility !== SymbolAccessibility.Accessible) {
377377
context.tracker.reportInferenceFallback(prop.name);
378378
}

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10250,6 +10250,6 @@ export interface SyntacticTypeNodeBuilderResolver {
1025010250
isNonNarrowedBindableName(name: ComputedPropertyName): boolean;
1025110251
isExpandoFunctionDeclaration(name: FunctionDeclaration | VariableDeclaration): boolean;
1025210252
getAllAccessorDeclarations(declaration: AccessorDeclaration): AllAccessorDeclarations;
10253-
isEntityNameVisible(enclosingDeclaration: Node, entityName: EntityNameOrEntityNameExpression, shouldComputeAliasToMakeVisible?: boolean): SymbolVisibilityResult;
10253+
isEntityNameVisible(entityName: EntityNameOrEntityNameExpression, enclosingDeclaration: Node, shouldComputeAliasToMakeVisible?: boolean): SymbolVisibilityResult;
1025410254
requiresAddingImplicitUndefined(parameter: ParameterDeclaration | JSDocParameterTag): boolean;
1025510255
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy