blob: d943998badfb91974b7c79a330c1bd5df98e3954 [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// <amd-module name="@angular/core/schematics/utils/typescript/nodes" />
import * as ts from 'typescript';
/** Checks whether the given TypeScript node has the specified modifier set. */
export declare function hasModifier(node: ts.Node, modifierKind: ts.SyntaxKind): boolean;
/** Find the closest parent node of a particular kind. */
export declare function closestNode<T extends ts.Node>(node: ts.Node, kind: ts.SyntaxKind): T | null;