You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
1.1 KiB

/**
* @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.dev/license
*/
/**
* @fileoverview This file contains helper functions for validating the structure of
* TypeScript AST nodes, particularly for identifying specific patterns in Jasmine tests.
*/
import ts from '../../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
/**
* If a node is a `jasmine.method()` call, returns the method name.
* @param node The node to check.
* @returns The name of the method if it's a jasmine call, otherwise undefined.
*/
export declare function getJasmineMethodName(node: ts.Node): string | undefined;
/**
* Checks if a node is a call expression for a specific method on the `jasmine` object.
* @param node The node to check.
* @param methodName The name of the method on the `jasmine` object.
* @returns True if the node is a `jasmine.<methodName>()` call.
*/
export declare function isJasmineCallExpression(node: ts.Node, methodName: string): node is ts.CallExpression;