update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-service/src/utils.js
/**
     * Finds the value of a property assignment that is nested in a TypeScript node and is of a certain
     * type T.
     *
     * @param startNode node to start searching for nested property assignment from
     * @param propName property assignment name
     * @param predicate function to verify that a node is of type T.
     * @return node property assignment value of type T, or undefined if none is found
     */
Finds the value of a property assignment that is nested in a TypeScript node and is of a certain
type T.

@param startNode node to start searching for nested property assignment from
@param propName property assignment name
@param predicate function to verify that a node is of type T.
@return node property assignment value of type T, or undefined if none is found
Finds the value of a property assignment that is nested in a TypeScript node and is of a certain type T . @param startNode node to start searching for nested property assignment from @param propName property assignment name @param predicate function to verify that a node is of type T . @return node property assignment value of type T or undefined if none is found
function findPropertyValueOfType(startNode, propName, predicate) {
        if (ts.isPropertyAssignment(startNode) && startNode.name.getText() === propName) {
            var initializer = startNode.initializer;
            if (predicate(initializer))
                return initializer;
        }
        return startNode.forEachChild(function (c) { return findPropertyValueOfType(c, propName, predicate); });
    }
function findPropertyValueOfType ( startNode , propName , predicate ) { if ( ts . isPropertyAssignment ( startNode ) && startNode . name . getText ( ) === propName ) { var initializer = startNode . initializer ; if ( predicate ( initializer ) ) return initializer ; } return startNode . forEachChild ( function ( c ) { return findPropertyValueOfType ( c , propName , predicate ) ; } ) ; }
Finds the value of a property assignment that is nested in a TypeScript node and is of a certain
 type T.
Finds the value of a property assignment that is nested in a TypeScript node and is of a certain type T .