Module patterns

Module patterns 

Source
Expand description

Shared regex patterns for import extraction across index modules.

These patterns are used by both the full index builder and the lazy context builder to extract import statements from source code.

Staticsยง

GO_IMPORT
Go: import "module" or import alias "module" or import ( "module" )
JAVA_IMPORT
Java: import package.Class;
JS_IMPORT
JavaScript/TypeScript: import ... from 'module' or import ... from "module"
JS_IMPORT_MULTILINE
JavaScript/TypeScript: multi-line import statements
JS_REQUIRE
JavaScript/TypeScript: require('module') or require("module")
PYTHON_FROM_IMPORT
Python: from module import name
PYTHON_IMPORT
Python: import module or import module.submodule
RUST_USE
Rust: use crate::module; or use std::collections::HashMap;