1 | import * as ts from 'typescript';
|
2 | export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike, checker?: ts.TypeChecker): boolean;
|
3 | export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement | ts.ExpressionStatement & {
|
4 | expression: ts.CallExpression;
|
5 | };
|
6 | export interface ControlFlowEnd {
|
7 | |
8 |
|
9 |
|
10 |
|
11 | readonly statements: ReadonlyArray<ControlFlowStatement>;
|
12 |
|
13 | readonly end: boolean;
|
14 | }
|
15 | export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike, checker?: ts.TypeChecker): ControlFlowEnd;
|
16 | export declare enum SignatureEffect {
|
17 | Never = 1,
|
18 | Asserts = 2
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare function callExpressionAffectsControlFlow(node: ts.CallExpression, checker: ts.TypeChecker): SignatureEffect | undefined;
|