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

Method get

packages/schematics/angular/utility/json-file.ts:59–72  ·  view source on GitHub ↗
(jsonPath: JSONPath)

Source from the content-addressed store, hash-verified

57 }
58
59 get(jsonPath: JSONPath): unknown {
60 const jsonAstNode = this.JsonAst;
61 if (!jsonAstNode) {
62 return undefined;
63 }
64
65 if (jsonPath.length === 0) {
66 return getNodeValue(jsonAstNode);
67 }
68
69 const node = findNodeAtLocation(jsonAstNode, jsonPath);
70
71 return node === undefined ? undefined : getNodeValue(node);
72 }
73
74 modify(
75 jsonPath: JSONPath,

Callers 13

updateTsConfigFunction · 0.95
addTsProjectReferenceFunction · 0.95
updateTsConfigRuleFunction · 0.95
addPackageJsonDependencyFunction · 0.95
getPackageJsonDependencyFunction · 0.95
removeMethod · 0.95
addTsProjectReferenceFunction · 0.95
updateTsConfigTypesFunction · 0.95
updateBuildTargetFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected