@angular-devkit/core#JsonAstNode TypeScript Examples
The following examples show how to use
@angular-devkit/core#JsonAstNode.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: json-utils.ts From angular-git-info with MIT License | 7 votes |
export function findPropertyInAstObject(
node: JsonAstObject,
propertyName: string,
): JsonAstNode | null {
let maybeNode: JsonAstNode | null = null;
for (const property of node.properties) {
if (property.key.value == propertyName) {
maybeNode = property.value;
}
}
return maybeNode;
}
Example #2
Source File: json-utils.ts From fab-menu with MIT License | 6 votes |
export function findPropertyInAstObject(node: JsonAstObject, propertyName: string): JsonAstNode | null {
return originalFindPropertyInAstObject(node, propertyName);
}