Icard/angular-clarity-master(work.../node_modules/tsutils/util/control-flow.d.ts

10 lines
596 B
TypeScript
Raw Normal View History

2024-07-16 15:23:22 +00:00
import * as ts from 'typescript';
export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike): boolean;
export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement;
export interface ControlFlowEnd {
readonly statements: ReadonlyArray<ControlFlowStatement>;
readonly end: boolean;
}
export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike): ControlFlowEnd;
export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike, label?: ts.Identifier): ControlFlowEnd;