12345678910
  1. import * as ts from 'typescript';
  2. export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike): boolean;
  3. export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement;
  4. export interface ControlFlowEnd {
  5. readonly statements: ReadonlyArray<ControlFlowStatement>;
  6. readonly end: boolean;
  7. }
  8. export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike): ControlFlowEnd;
  9. export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike, label?: ts.Identifier): ControlFlowEnd;