mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
add call to getParseTreeNode
This commit is contained in:
@@ -736,8 +736,10 @@ namespace ts {
|
||||
|
||||
getLocalTypeParametersOfClassOrInterfaceOrTypeAlias,
|
||||
isDeclarationVisible,
|
||||
isPropertyAccessible: (node, isSuper, writing, type, prop) => {
|
||||
return checkPropertyAccessibilityAtNode(node, isSuper, writing, type, prop).result === TypeChecks.Ok;
|
||||
isPropertyAccessible: (nodeIn, isSuper, writing, type, prop) => {
|
||||
const node = getParseTreeNode(nodeIn);
|
||||
return node ?
|
||||
checkPropertyAccessibilityAtNode(node, isSuper, writing, type, prop).result === TypeChecks.Ok : false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user