docs/libs/typescript.js
function tryGetNamedImportsOrExportsForCompletion(contextToken) {
                if (contextToken) {
                    switch (contextToken.kind) {
                        case 15 /* OpenBraceToken */: // import { |
                        case 24 /* CommaToken */:
                            switch (contextToken.parent.kind) {
                                case 233 /* NamedImports */:
                                case 237 /* NamedExports */:
                                    return contextToken.parent;
                            }
                    }
                }
                return undefined;
            }
function tryGetNamedImportsOrExportsForCompletion(contextToken) {
                if (contextToken) {
                    switch (contextToken.kind) {
                        case 15 /* OpenBraceToken */: // import { |
                        case 24 /* CommaToken */:
                            switch (contextToken.parent.kind) {
                                case 233 /* NamedImports */:
                                case 237 /* NamedExports */:
                                    return contextToken.parent;
                            }
                    }
                }
                return undefined;
            }
function tryGetNamedImportsOrExportsForCompletion ( contextToken ) { if ( contextToken ) { switch ( contextToken . kind ) { case 15 /* OpenBraceToken */ : // import { | case 24 /* CommaToken */ : switch ( contextToken . parent . kind ) { case 233 /* NamedImports */ : case 237 /* NamedExports */ : return contextToken . parent ; } } } return undefined ; }
Returns the containing list of named imports or exports of a context token,
on the condition that one exists and that the context implies completion should be given.
Returns the containing list of named imports or exports of a context token on the condition that one exists and that the context implies completion should be given .