mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Included previously ignored baseline .js file and slight refactoring
This commit is contained in:
@@ -15412,14 +15412,13 @@ namespace ts {
|
||||
|
||||
function isNodeWithinClass(node: Node, classDeclaration: ClassLikeDeclaration) {
|
||||
while (true) {
|
||||
const containingClass = getContainingClass(node);
|
||||
if (!containingClass) {
|
||||
node = getContainingClass(node);
|
||||
if (!node) {
|
||||
return false;
|
||||
}
|
||||
if (containingClass === classDeclaration) {
|
||||
if (node === classDeclaration) {
|
||||
return true;
|
||||
}
|
||||
node = containingClass;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user