MCPcopy Create free account

hub / github.com/oxc-project/oxc-resolver / functions

Functions769 in github.com/oxc-project/oxc-resolver

↓ 3 callersMethoddts_resolve_in_node_modules_dir
( &self, extensions: Extensions, specifier: &str, nm_dir: &CachedPath,
src/dts_resolver.rs:524
↓ 3 callersMethoddts_resolve_relative
( &self, extensions: Extensions, candidate: &CachedPath, ctx: &mut Ctx, )
src/dts_resolver.rs:194
↓ 3 callersFunctionget_value_by_path
Navigate `fields` along `path` (e.g. `["exports"]` or `["a", "b"]`), returning the value.
src/package_json/mod.rs:117
↓ 3 callersMethodinside_node_modules
(&self)
src/cache/cached_path.rs:98
↓ 3 callersMethodis_file_included_in_tsconfig
(&self, path: &Path)
src/tsconfig.rs:667
↓ 3 callersMethodis_glob_matches
(&self, path: &Path, pattern: GlobPattern)
src/tsconfig.rs:698
↓ 3 callersMethodkey_matches
Whether this entry's key matches `specifier` (raw bytes). Matching on bytes lets a caller gate on a path's `OsStr` without paying for UTF-8 validation
src/alias.rs:124
↓ 3 callersMethodload_alias
enhanced-resolve: AliasPlugin for [crate::ResolveOptions::alias] and [crate::ResolveOptions::fallback].
src/alias.rs:144
↓ 3 callersMethodload_as_directory
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:757
↓ 3 callersMethodload_package_files
(&mut self, package_root: &Path)
benches/resolver.rs:634
↓ 3 callersMethodload_package_imports
LOAD_PACKAGE_IMPORTS(X, DIR)
src/lib.rs:705
↓ 3 callersMethodload_package_self
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:1192
↓ 3 callersMethodload_package_self_or_node_modules
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:649
↓ 3 callersMethodload_tsconfig
( &self, root: bool, path: &Path, references: TsconfigReferences, ctx:
src/tsconfig_resolver.rs:195
↓ 3 callersMethodmain_fields
The "main" field defines the entry point of a package when imported by name via a node_modules lookup. Its value should be a path. When a package has
src/package_json/mod.rs:294
↓ 3 callersFunctionmap_resolution_to_result
(result: Result<Resolution, ResolveError>)
napi/src/lib.rs:360
↓ 3 callersMethodmask_contains
(&self, byte: u8)
src/alias.rs:25
↓ 3 callersFunctionmetadata
()
src/file_system.rs:368
↓ 3 callersMethodpackage_imports_exports_resolve
PACKAGE_IMPORTS_EXPORTS_RESOLVE(matchKey, matchObj, packageURL, isImports, conditions)
src/lib.rs:1618
↓ 3 callersMethodpackage_target_resolve
( &self, package_url: &CachedPath, target_key: &str, target: &ImportsExportsEn
src/lib.rs:1707
↓ 3 callersFunctionprepare_symlinks
Prepares symlinks for the test. Specify a different `temp_path_segment` for each test to avoid conflicts when tests are executed concurrently. Returns
src/tests/symlink.rs:106
↓ 3 callersFunctionreplace_bom_with_whitespace
Strip BOM in place by replacing with spaces (no reallocation) UTF-8 BOM is 3 bytes: 0xEF, 0xBB, 0xBF
src/lib.rs:2006
↓ 3 callersFunctionresolve
(resolver: &Resolver, path: &Path, request: &str)
napi/src/lib.rs:390
↓ 3 callersMethodresolve_esm_match
RESOLVE_ESM_MATCH(MATCH)
src/lib.rs:1235
↓ 3 callersMethodresolve_tracing
Wrap `resolve_impl` with `tracing` information
src/lib.rs:316
↓ 3 callersMethodwith_builtin_modules
(mut self, flag: bool)
src/options.rs:252
↓ 3 callersMethodwith_query_fragment
(&mut self, query: Option<&str>, fragment: Option<&str>)
src/context.rs:33
↓ 2 callersMethodadd_extension
(&self, target: &str, cache: &Cache)
src/cache/cached_path.rs:142
↓ 2 callersMethodadd_file_dependency
(&mut self, dep: &Path)
src/context.rs:47
↓ 2 callersMethodadd_missing_dependency
(&mut self, dep: &Path)
src/context.rs:53
↓ 2 callersFunctionalias_value
Interpret a `"browser"`/alias-field value: a string is the replacement, `false` means the request is ignored, anything else is "no mapping".
src/package_json/mod.rs:127
↓ 2 callersMethodas_array
(&self)
src/package_json/mod.rs:419
↓ 2 callersMethodas_bool
(&self)
src/package_json/simd.rs:51
↓ 2 callersFunctionassert_extends_symlink_resolves_to_canonical
(config_file: &Path)
src/tests/tsconfig_extends.rs:400
↓ 2 callersMethodcanonicalize_impl
Returns the canonical path, resolving all symbolic links. <https://github.com/parcel-bundler/parcel/blob/4d27ec8b8bd1792f536811fef86e74a31fa0e704/cra
src/cache/cache_impl.rs:363
↓ 2 callersFunctioncheck_if_empty
Check if JSON content is empty or contains only whitespace
src/package_json/mod.rs:26
↓ 2 callersFunctiondata
()
benches/resolver.rs:13
↓ 2 callersFunctiondecode_pathname
(pathname: &'a str, specifier: &str)
src/file_url.rs:69
↓ 2 callersMethoddts_finalize
( &self, cached_path: &CachedPath, ctx: &mut Ctx, )
src/dts_resolver.rs:160
↓ 2 callersMethoddts_resolve_via_version_paths
Resolve a specifier against typesVersions path mappings.
src/dts_resolver.rs:644
↓ 2 callersMethoddts_try_extensions
TS: `tryAddingExtensions`
src/dts_resolver.rs:253
↓ 2 callersMethodextend_tsconfig
( &self, directory: &CachedPath, tsconfig: &mut TsConfig, ctx: &mut TsconfigRe
src/tsconfig_resolver.rs:267
↓ 2 callersMethodextends
Returns any paths to tsconfigs that should be extended by this tsconfig.
src/tsconfig.rs:179
↓ 2 callersFunctionfile_system
()
src/tests/full_specified.rs:10
↓ 2 callersMethodfind_package_json_for_a_package
( &self, cached_path: &CachedPath, ctx: &mut Ctx, )
src/lib.rs:362
↓ 2 callersMethodfind_tsconfig_manual
( &self, tsconfig_options: &TsconfigOptions, )
src/tsconfig_resolver.rs:153
↓ 2 callersFunctionfixture
()
tests/api.rs:14
↓ 2 callersFunctionfixture
()
tests/misc.rs:11
↓ 2 callersMethodfollowed_metadata
`stat`-equivalent metadata (symlinks followed) for `path`, cached in the `followed` slot. For a non-symlink the cached `lstat` already answers this,
src/cache/cache_impl.rs:137
↓ 2 callersMethodfollowed_or_init
Return the cached `stat` (symlink-followed) view, or populate it from `f` and return that.
src/cache/cached_meta.rs:51
↓ 2 callersFunctionfoo
()
fixtures/tsconfck/parse/solution/jsconfig/src/foo.js:1
↓ 2 callersMethodget_extended_tsconfig_path
( &self, directory: &CachedPath, tsconfig: &TsConfig, specifier: &str, )
src/tsconfig_resolver.rs:433
↓ 2 callersMethodget_module_directory
( &self, cached_path: &CachedPath, module_name: &str, ctx: &mut Ctx, )
src/lib.rs:1140
↓ 2 callersFunctionget_or_init
(slot: &AtomicU8, f: F)
src/cache/cached_meta.rs:59
↓ 2 callersFunctionhas_encoded_separators
Check if pathname contains a percent-encoded forbidden character. Returns true if `%2F` (encoded `/`) is found, or on Windows also `%5C` (encoded `\`)
src/file_url.rs:52
↓ 2 callersMethodis_file
(&self, path: &CachedPath, symlinks: bool, ctx: &mut Ctx)
src/cache/cache_impl.rs:106
↓ 2 callersMethodis_file_extension_allowed_in_tsconfig
(&self, path: &Path)
src/tsconfig.rs:747
↓ 2 callersMethodis_node_modules
(&self)
src/cache/cached_path.rs:94
↓ 2 callersMethodlink_or_init
Return the cached `lstat` view, or populate it from `f` (an `lstat`) and return that.
src/cache/cached_meta.rs:46
↓ 2 callersMethodload_browser_field
enhanced-resolve: AliasFieldPlugin for [crate::ResolveOptions::alias_fields]
src/lib.rs:1255
↓ 2 callersMethodload_browser_field_or_alias
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:906
↓ 2 callersMethodload_directory_tree
(&mut self, root: &Path)
benches/resolver.rs:549
↓ 2 callersMethodload_index
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:883
↓ 2 callersMethodload_node_modules
( &self, cached_path: &CachedPath, specifier: &str, package_name: &str,
src/lib.rs:950
↓ 2 callersMethodload_realpath
(&self, cached_path: &CachedPath)
src/lib.rs:842
↓ 2 callersMethodmanual_tsconfig
The manually configured tsconfig ([`TsconfigDiscovery::Manual`]); `Auto` discovery is deliberately skipped.
src/tsconfig_resolver.rs:146
↓ 2 callersMethodmatching
Entries whose first byte is compatible with `specifier`, in declaration order. This is only the fast-reject; callers still confirm with [`CompiledAlia
src/alias.rs:37
↓ 2 callersMethodmay_match
Whether any entry's first byte is compatible with `specifier`, without touching the entries. `0` in the mask means an always-evaluated entry exists.
src/alias.rs:31
↓ 2 callersMethodmodule_directory
( &self, module_name: &str, symlinks: bool, cache: &Cache, ctx: &mut C
src/cache/cached_path.rs:102
↓ 2 callersMethodparse
Parses the tsconfig from a JSON string. `path` is the requested path (used as identity for cache lookup and error reporting). `canonical_path` anchor
src/tsconfig.rs:93
↓ 2 callersFunctionpin_rayon_threads
Pin rayon's global pool to a fixed thread count so the `multi-thread` benches are deterministic. Rayon otherwise sizes the pool to the host core count
benches/resolver.rs:164
↓ 2 callersMethodr#type
(&self)
src/package_json/mod.rs:228
↓ 2 callersMethodrequire_core
PACKAGE_RESOLVE(packageSpecifier, parentURL) 3. If packageSpecifier is a Node.js builtin module name, then 1. Return the string "node:" concatenated w
src/lib.rs:505
↓ 2 callersMethodrequire_without_parse
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:440
↓ 2 callersMethodresolve_base_url
(&self, specifier: &str)
src/tsconfig.rs:515
↓ 2 callersFunctionresolve_dts
(resolver: &Resolver, file: &Path, request: &str)
napi/src/lib.rs:398
↓ 2 callersFunctionresolve_file
(resolver: &Resolver, path: &Path, request: &str)
napi/src/lib.rs:394
↓ 2 callersFunctionresolve_options
()
benches/resolver.rs:107
↓ 2 callersMethodresolver
(&self, root: &Path)
src/tests/tsconfig_paths.rs:397
↓ 2 callersMethodset_should_build
Set whether `build()` should normalize paths.
src/tsconfig.rs:155
↓ 2 callersFunctionto_forward_slashes
Normalize Windows `\` to `/` for glob matching, without allocating when there's nothing to replace.
src/tsconfig.rs:623
↓ 2 callersMethodtsconfig_extends_resolver
Lookup configuration shared by tsconfig `extends` targets that resolve through `node_modules`: bare package specifiers (via the package `exports` fiel
src/tsconfig_resolver.rs:413
↓ 2 callersFunctiontsconfig_resolve_impl
<https://github.com/parcel-bundler/parcel/blob/b6224fd519f95e68d8b93ba90376fd94c8b76e69/packages/utils/node-resolver-rs/src/lib.rs#L2303>
src/tests/tsconfig_paths.rs:11
↓ 2 callersMethodwith_root
(mut self, root: P)
src/options.rs:269
↓ 1 callersMethodadd_name_and_extension
(&self, name: &str, ext: &str, cache: &Cache)
src/cache/cached_path.rs:152
↓ 1 callersMethodany_key_matches
Whether any entry's key matches `specifier` (raw bytes), gated by the first-byte mask. This runs for every file candidate when `alias` is configured,
src/alias.rs:50
↓ 1 callersMethodas_str
(&self)
src/package_json/serde.rs:25
↓ 1 callersMethodbrowser_fields
( &'a self, alias_fields: &'a [Vec<String>], )
src/package_json/mod.rs:339
↓ 1 callersMethodcached_node_modules
( &self, symlinks: bool, cache: &Cache, ctx: &mut Ctx, )
src/cache/cached_path.rs:113
↓ 1 callersMethodcanonicalize
(path: &Path)
src/file_system.rs:254
↓ 1 callersMethodcanonicalize_with_visited
Internal helper for canonicalization with circular symlink detection.
src/cache/cache_impl.rs:379
↓ 1 callersMethodclaims_ownership_of
Whether this tsconfig (directly or via a referenced sub-project) claims ownership of `path`. Used by tsconfig auto-discovery to decide whether to keep
src/tsconfig.rs:647
↓ 1 callersFunctioncleanup_symlinks
(temp_path: &Path)
src/tests/symlink.rs:92
↓ 1 callersMethodclear_cache
Clear the underlying cache. Warning: The caller must ensure that there're no ongoing resolution operations when calling this method. Otherwise, it ma
src/lib.rs:219
↓ 1 callersMethodcreate_symlink_fixtures
(&mut self, cwd: &Path)
benches/resolver.rs:672
↓ 1 callersFunctioncreate_symlinks
()
benches/resolver.rs:84
↓ 1 callersFunctioncreate_symlinks
(dirname: &Path, temp_path: &Path)
src/tests/symlink.rs:53
↓ 1 callersFunctiondecode
Decode a slot known to be [`INITIALIZED`].
src/cache/cached_meta.rs:85
↓ 1 callersMethoddifference
(self, other: Self)
src/dts_resolver.rs:53
↓ 1 callersMethoddts_resolve_esm_match
(&self, cached_path: &CachedPath, ctx: &mut Ctx)
src/dts_resolver.rs:592
← previousnext →101–200 of 769, ranked by callers