docs/libs/typescript.js
function tryGetObjectLikeCompletionContainer(contextToken) {
                if (contextToken) {
                    switch (contextToken.kind) {
                        case 15 /* OpenBraceToken */: // const x = { |
                        case 24 /* CommaToken */:
                            var parent_19 = contextToken.parent;
                            if (parent_19 && (parent_19.kind === 171 /* ObjectLiteralExpression */ || parent_19.kind === 167 /* ObjectBindingPattern */)) {
                                return parent_19;
                            }
                            break;
                    }
                }
                return undefined;
            }
function tryGetObjectLikeCompletionContainer(contextToken) {
                if (contextToken) {
                    switch (contextToken.kind) {
                        case 15 /* OpenBraceToken */: // const x = { |
                        case 24 /* CommaToken */:
                            var parent_19 = contextToken.parent;
                            if (parent_19 && (parent_19.kind === 171 /* ObjectLiteralExpression */ || parent_19.kind === 167 /* ObjectBindingPattern */)) {
                                return parent_19;
                            }
                            break;
                    }
                }
                return undefined;
            }
function tryGetObjectLikeCompletionContainer ( contextToken ) { if ( contextToken ) { switch ( contextToken . kind ) { case 15 /* OpenBraceToken */ : // const x = { | case 24 /* CommaToken */ : var parent_19 = contextToken . parent ; if ( parent_19 && ( parent_19 . kind === 171 /* ObjectLiteralExpression */ || parent_19 . kind === 167 /* ObjectBindingPattern */ ) ) { return parent_19 ; } break ; } } return undefined ; }
Returns the immediate owning object literal or binding pattern of a context token,
on the condition that one exists and that the context implies completion should be given.
Returns the immediate owning object literal or binding pattern of a context token on the condition that one exists and that the context implies completion should be given .