MCPcopy Index your code
hub / github.com/angular/angular-cli / fragment

Function fragment

packages/angular_devkit/core/src/virtual-fs/path.ts:175–181  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

173}
174
175export function fragment(path: string): PathFragment {
176 if (path.indexOf(NormalizedSep) != -1) {
177 throw new PathCannotBeFragmentException(path);
178 }
179
180 return path as PathFragment;
181}
182
183/**
184 * normalize() cache to reduce computation. For now this grows and we never flush it, but in the

Callers 5

memory_spec.tsFile · 0.90
listMethod · 0.90
listMethod · 0.90
splitFunction · 0.85
basenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected