MCPcopy Index your code
hub / github.com/angular/angular / absoluteFrom

Function absoluteFrom

packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts:25–30  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

23 * Convert the path `path` to an `AbsoluteFsPath`, throwing an error if it's not an absolute path.
24 */
25export function absoluteFrom(path: string): AbsoluteFsPath {
26 if (!fs.isRooted(path)) {
27 throw new Error(`Internal Error: absoluteFrom(${path}): path is not absolute`);
28 }
29 return fs.resolve(path);
30}
31
32const ABSOLUTE_PATH = Symbol('AbsolutePath');
33

Calls 2

isRootedMethod · 0.65
resolveMethod · 0.65

Tested by 5

migrateInlineTemplateFunction · 0.72
migrateExternalTemplateFunction · 0.72
verifyFunction · 0.72
verifyFunction · 0.72
diagnoseTestComponentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…