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"orimport alias "module"orimport ( "module" ) - JAVA_
IMPORT - Java:
import package.Class; - JS_
IMPORT - JavaScript/TypeScript:
import ... from 'module'orimport ... from "module" - JS_
IMPORT_ MULTILINE - JavaScript/TypeScript: multi-line import statements
- JS_
REQUIRE - JavaScript/TypeScript:
require('module')orrequire("module") - PYTHON_
FROM_ IMPORT - Python:
from module import name - PYTHON_
IMPORT - Python:
import moduleorimport module.submodule - RUST_
USE - Rust:
use crate::module;oruse std::collections::HashMap;