(node)
| 69206 | } |
| 69207 | // EXPRESSION TYPE CHECKING |
| 69208 | function getCannotFindNameDiagnosticForName(node) { |
| 69209 | switch (node.escapedText) { |
| 69210 | case "document": |
| 69211 | case "console": |
| 69212 | return ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; |
| 69213 | case "$": |
| 69214 | return compilerOptions.types |
| 69215 | ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig |
| 69216 | : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; |
| 69217 | case "describe": |
| 69218 | case "suite": |
| 69219 | case "it": |
| 69220 | case "test": |
| 69221 | return compilerOptions.types |
| 69222 | ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig |
| 69223 | : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha; |
| 69224 | case "process": |
| 69225 | case "require": |
| 69226 | case "Buffer": |
| 69227 | case "module": |
| 69228 | return compilerOptions.types |
| 69229 | ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig |
| 69230 | : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; |
| 69231 | case "Map": |
| 69232 | case "Set": |
| 69233 | case "Promise": |
| 69234 | case "Symbol": |
| 69235 | case "WeakMap": |
| 69236 | case "WeakSet": |
| 69237 | case "Iterator": |
| 69238 | case "AsyncIterator": |
| 69239 | case "SharedArrayBuffer": |
| 69240 | case "Atomics": |
| 69241 | case "AsyncIterable": |
| 69242 | case "AsyncIterableIterator": |
| 69243 | case "AsyncGenerator": |
| 69244 | case "AsyncGeneratorFunction": |
| 69245 | case "BigInt": |
| 69246 | case "Reflect": |
| 69247 | case "BigInt64Array": |
| 69248 | case "BigUint64Array": |
| 69249 | return ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later; |
| 69250 | case "await": |
| 69251 | if (ts.isCallExpression(node.parent)) { |
| 69252 | return ts.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; |
| 69253 | } |
| 69254 | // falls through |
| 69255 | default: |
| 69256 | if (node.parent.kind === 297 /* SyntaxKind.ShorthandPropertyAssignment */) { |
| 69257 | return ts.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; |
| 69258 | } |
| 69259 | else { |
| 69260 | return ts.Diagnostics.Cannot_find_name_0; |
| 69261 | } |
| 69262 | } |
| 69263 | } |
| 69264 | function getResolvedSymbol(node) { |
| 69265 | var links = getNodeLinks(node); |
no outgoing calls
no test coverage detected