File-language scope of the client-navigation heuristic (#1250): the JS/TS * family and the hosts that embed it. Kept explicit so changes to the * weak-member guard cannot broaden it. */
| 2491 | * family and the hosts that embed it. Kept explicit so changes to the |
| 2492 | * weak-member guard cannot broaden it. */ |
| 2493 | static bool pp_client_navigation_lang(CBMLanguage lang) { |
| 2494 | return lang == CBM_LANG_JAVASCRIPT || lang == CBM_LANG_TYPESCRIPT || lang == CBM_LANG_TSX || |
| 2495 | lang == CBM_LANG_ARKTS || lang == CBM_LANG_HTML || lang == CBM_LANG_VUE || |
| 2496 | lang == CBM_LANG_SVELTE || lang == CBM_LANG_ASTRO; |
| 2497 | } |
| 2498 | |
| 2499 | /* Detect API paths in call arguments and create HTTP_CALLS edges. */ |
| 2500 | static void detect_url_in_args(cbm_gbuf_t *gbuf, const cbm_gbuf_node_t *source, const CBMCall *call, |