function isListElement(parent, node) {
            switch (parent.kind) {
                case 214 /* ClassDeclaration */:
                case 215 /* InterfaceDeclaration */:
                    return ts.rangeContainsRange(parent.members, node);
                case 218 /* ModuleDeclaration */:
                    var body = parent.body;
                    return body && body.kind === 192 /* Block */ && ts.rangeContainsRange(body.statements, node);
                case 248 /* SourceFile */:
                case 192 /* Block */:
                case 219 /* ModuleBlock */:
                    return ts.rangeContainsRange(parent.statements, node);
                case 244 /* CatchClause */:
                    return ts.rangeContainsRange(parent.block.statements, node);
            }
            return false;
        }
function isListElement(parent, node) {
            switch (parent.kind) {
                case 214 :
                case 215 :
                    return ts.rangeContainsRange(parent.members, node);
                case 218 :
                    var body = parent.body;
                    return body && body.kind === 192  && ts.rangeContainsRange(body.statements, node);
                case 248 :
                case 192 :
                case 219 :
                    return ts.rangeContainsRange(parent.statements, node);
                case 244 :
                    return ts.rangeContainsRange(parent.block.statements, node);
            }
            return false;
        }
function isListElement ( parent , node ) { switch ( parent . kind ) { case 214 /* ClassDeclaration */ : case 215 /* InterfaceDeclaration */ : return ts . rangeContainsRange ( parent . members , node ) ; case 218 /* ModuleDeclaration */ : var body = parent . body ; return body && body . kind === 192 /* Block */ && ts . rangeContainsRange ( body . statements , node ) ; case 248 /* SourceFile */ : case 192 /* Block */ : case 219 /* ModuleBlock */ : return ts . rangeContainsRange ( parent . statements , node ) ; case 244 /* CatchClause */ : return ts . rangeContainsRange ( parent . block . statements , node ) ; } return false ; }
Returns true if node is a element in some list in parent i.e. parent is class declaration with the list of members and node is one of members.
Returns true if node is a element in some list in parent i . e . parent is class declaration with the list of members and node is one of members .