MCPcopy Create free account

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

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

↓ 179 callersMethodresolve
Resolve `specifier` at an absolute path to a `directory`. A specifier is the string passed to require or import, i.e. `require("specifier")` or `impo
src/lib.rs:243
↓ 133 callersMethodfull_path
(&self)
src/resolution.rs:94
↓ 119 callersFunctionfixture_root
()
src/tests/mod.rs:43
↓ 111 callersMethodpush
(&self, target: &str, cache: &Cache)
src/cache/cached_path.rs:133
↓ 81 callersFunctionfixture
()
src/tests/mod.rs:56
↓ 58 callersMethoditer
(&self)
src/package_json/mod.rs:443
↓ 54 callersMethodlen
(&self)
src/package_json/mod.rs:439
↓ 54 callersMethodpath
(&self)
src/tsconfig.rs:163
↓ 52 callersMethodresolve_file
Resolve `specifier` for an absolute path to a file. NOTE: [TsconfigDiscovery::Auto] only work for this API. # Errors See [ResolveError] Returns an
src/lib.rs:262
↓ 51 callersMethodto_path_buf
(&self)
src/cache/cached_path.rs:80
↓ 51 callersMethodvalue
(&self, path: &Path)
src/cache/cache_impl.rs:49
↓ 42 callersMethodis_empty
(&self)
src/package_json/mod.rs:434
↓ 39 callersMethodresolve_tsconfig
Resolve `tsconfig`. The path can be: Path to a file with `.json` extension. Path to a file without `.json` extension, `.json` will be appended to fi
src/tsconfig_resolver.rs:185
↓ 37 callersMethodcontains
(self, other: Self)
src/dts_resolver.rs:37
↓ 35 callersMethodparent
(&self, cache: &Cache)
src/cache/cached_path.rs:84
↓ 33 callersMethodresolve_dts
Resolve a module specifier for TypeScript declaration files. Matches `ts.resolveModuleName` with `moduleResolution: "bundler"`. `containing_file` is
src/dts_resolver.rs:81
↓ 31 callersFunctionresolver
()
src/tests/dts_resolver.rs:11
↓ 31 callersFunctiontest
()
fixtures/tsconfck/parse/solution/simple/tests/foo.ts:4
↓ 29 callersFunctioncontaining_file
()
src/tests/dts_resolver.rs:7
↓ 28 callersMethodnormalize_with
(&self, subpath: P, cache: &Cache)
src/cache/cached_path.rs:182
↓ 28 callersMethodsync
(&self, directory: String, request: String)
napi/src/lib.rs:191
↓ 24 callersMethodas_str
(&self)
src/package_json/simd.rs:44
↓ 18 callersMethoddts_try_file
(&self, base: &CachedPath, ext: &str, ctx: &mut Ctx)
src/dts_resolver.rs:361
↓ 18 callersMethodget
(&self, key: &str)
src/package_json/mod.rs:452
↓ 17 callersMethodfield
(&self, key: &str)
src/package_json/mod.rs:201
↓ 15 callersMethodis_dir
(self)
src/file_system.rs:102
↓ 14 callersMethodfind_tsconfig
Finds the `tsconfig` to which this `path` belongs. If the `path` is inside `node_modules`, this function always returns `None`. Algorithm: 1. Searc
src/tsconfig_resolver.rs:52
↓ 14 callersMethodpath
(&self)
src/cache/cached_path.rs:76
↓ 12 callersMethodcanonicalize
(&self, path: &Path)
src/tests/memory_fs.rs:90
↓ 12 callersMethodis_symlink
(self)
src/file_system.rs:107
↓ 12 callersFunctionmanual_resolver
(config_file: std::path::PathBuf, extensions: Vec<String>)
src/tests/tsconfig_lookup.rs:8
↓ 12 callersFunctionsymlink
( original: P, link: Q, file_type: FileType, )
src/tests/symlink.rs:20
↓ 10 callersMethodadd_parent_directories
(&mut self, path: &Path)
benches/resolver.rs:525
↓ 10 callersMethodclone_with_options
(&self, options: ResolveOptions)
src/lib.rs:189
↓ 10 callersMethodunion
(self, other: Self)
src/dts_resolver.rs:49
↓ 9 callersMethoddirectory
(&self)
src/tsconfig.rs:173
↓ 9 callersMethodis_dir
[`Cache::is_dir`] using this resolver's [`ResolveOptions::symlinks`] policy.
src/lib.rs:411
↓ 9 callersMethodis_empty
(self)
src/dts_resolver.rs:45
↓ 9 callersMethodresolve_with_context
Resolve `specifier` at absolute `path` with [ResolveContext] # Errors See [ResolveError]
src/lib.rs:296
↓ 9 callersFunctionsymlink_metadata
Optimized version of [std::fs::symlink_metadata] for Windows. [std::fs::symlink_metadata] implementation uses `GetFileInformationByHandle` on Windows
src/windows/metadata.rs:18
↓ 9 callersMethodwith_fully_specified
(&mut self, yes: bool)
src/context.rs:29
↓ 8 callersMethodas_object
`Self::Object` would be ambiguous with the `BorrowedValue::Object` variant, so name the concrete object type.
src/package_json/simd.rs:67
↓ 8 callersFunctioncompile_alias
(aliases: &Alias)
src/alias.rs:85
↓ 8 callersFunctiondir
()
tests/resolve_package.rs:7
↓ 8 callersMethodis_file
(self)
src/file_system.rs:97
↓ 8 callersMethodpackage_json
(&self)
src/resolution.rs:88
↓ 7 callersMethodclear
(&self)
src/cache/cache_impl.rs:36
↓ 7 callersFunctionclone
()
tests/api.rs:24
↓ 7 callersMethoddts_resolve_as_file
TS: `loadModuleFromFile`
src/dts_resolver.rs:207
↓ 7 callersMethodload_as_file_or_directory
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:819
↓ 6 callersMethodadd_file
(&mut self, path: &Path, content: &str)
src/tests/memory_fs.rs:28
↓ 6 callersMethodfind_package_json
Find package.json of a path by traversing parent directories. # Errors [ResolveError::Json]
src/cache/cache_impl.rs:178
↓ 6 callersMethodget_package_json
Get package.json of a path of `path`. # Errors [ResolveError::Json]
src/cache/cache_impl.rs:157
↓ 6 callersMethodnormalize
https://github.com/parcel-bundler/parcel/blob/e0b99c2a42e9109a9ecbd6f537844a1b33e7faf5/packages/utils/node-resolver-rs/src/path.rs#L7
src/path.rs:38
↓ 6 callersFunctionoxc_resolver_memory
()
benches/resolver.rs:149
↓ 6 callersMethodpackage_exports_resolve
PACKAGE_EXPORTS_RESOLVE(packageURL, subpath, exports, conditions)
src/lib.rs:1467
↓ 6 callersMethodresolve_path_alias
(&self, specifier: &str)
src/tsconfig.rs:491
↓ 5 callersMethodas_map
(&self)
src/package_json/mod.rs:424
↓ 5 callersFunctioncreateTest
(exportsFields)
napi/tests/options.test.mjs:34
↓ 5 callersFunctiondts_fixture
()
src/tests/dts_resolver.rs:3
↓ 5 callersMethodexports_fields
The "exports" field allows defining the entry points of a package when imported by name loaded either via a node_modules lookup or a self-reference to
src/package_json/mod.rs:310
↓ 5 callersMethodfs
(&self)
src/cache/cache_impl.rs:44
↓ 5 callersMethodget_tsconfig
( &self, root: bool, path: &Path, callback: F, // callback for modifying tscon
src/cache/cache_impl.rs:250
↓ 5 callersMethodinto_path_buf
(self)
src/resolution.rs:70
↓ 5 callersFunctionisMusl
()
napi/index.js:10
↓ 5 callersMethodis_dir
(&self, path: &CachedPath, symlinks: bool, ctx: &mut Ctx)
src/cache/cache_impl.rs:116
↓ 5 callersMethodkind
(&self)
src/package_json/mod.rs:409
↓ 5 callersMethodpath
(&self)
src/package_json/mod.rs:175
↓ 5 callersMethodrequire
require(X) from module at path Y X: specifier Y: path <https://nodejs.org/api/modules.html#all-together>
src/lib.rs:421
↓ 5 callersMethodresolve
(&mut self, _: napi::Env, result: Self::Output)
napi/src/lib.rs:101
↓ 5 callersMethodroot
(&self)
src/package_json/simd.rs:101
↓ 4 callersMethodadjust_path
(&self, path: PathBuf)
src/tsconfig.rs:459
↓ 4 callersMethodas_slice
(&self)
src/package_json/simd.rs:58
↓ 4 callersMethodcheck_restrictions
(&self, path: &Path)
src/lib.rs:855
↓ 4 callersFunctiondir
()
tests/misc.rs:7
↓ 4 callersMethoddts_resolve_as_directory
TS: `loadNodeModuleFromDirectoryWorker`
src/dts_resolver.rs:388
↓ 4 callersMethodfinish
(&self)
src/cache/hasher.rs:17
↓ 4 callersFunctionget_dos_device_path
(path: P)
src/tests/windows.rs:39
↓ 4 callersMethodis_file
[`Cache::is_file`] using this resolver's [`ResolveOptions::symlinks`] policy.
src/lib.rs:406
↓ 4 callersMethodkeys
(&self)
src/package_json/mod.rs:456
↓ 4 callersMethodlink_metadata
`lstat` view of this path (the link itself), cached. Used both to answer `is_file`/`is_dir` for non-symlinks and by canonicalization to decide whethe
src/cache/cached_path.rs:233
↓ 4 callersMethodload_alias_or_file
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:935
↓ 4 callersMethodload_as_file
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:727
↓ 4 callersMethodmetadata
(&self, path: &Path)
src/tests/memory_fs.rs:71
↓ 4 callersMethodname
(&self)
src/package_json/mod.rs:212
↓ 4 callersFunctionnormalizePath
(p)
napi/tests/utils.mjs:1
↓ 4 callersFunctionoxc_resolver_real
()
benches/resolver.rs:155
↓ 4 callersFunctionpush_normalized_component
(ret: &mut PathBuf, component: Component<'_>)
src/path.rs:126
↓ 4 callersMethodread
(&self, path: &Path)
src/tests/memory_fs.rs:55
↓ 4 callersMethodrequire_relative
3. If X is '.' or begins with './' or '/' or '../'
src/lib.rs:556
↓ 4 callersFunctionresolve
(specifier: &str)
tests/api.rs:18
↓ 4 callersMethodsanitize
(mut self)
src/options.rs:424
↓ 4 callersFunctionstrip_windows_prefix
When applicable, converts a [DOS device path](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths) to a normal pat
src/windows/mod.rs:14
↓ 4 callersFunctionwalk
(dir: &PathBuf)
src/tests/tsconfck.rs:7
↓ 4 callersMethodwith_extension
(mut self, extension: S)
src/options.rs:286
↓ 3 callersMethodas_string
(&self)
src/package_json/mod.rs:414
↓ 3 callersMethodbuild
(mut self)
src/tsconfig.rs:379
↓ 3 callersMethodcanonicalize
(&self, path: &CachedPath)
src/cache/cache_impl.rs:94
↓ 3 callersFunctioncheck_slash
(path: &Path)
src/tests/alias.rs:155
↓ 3 callersFunctiondir
()
tests/api.rs:10
next →1–100 of 769, ranked by callers