diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/tsutils/util/control-flow.d.ts | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/tsutils/util/control-flow.d.ts')
-rw-r--r-- | node_modules/tsutils/util/control-flow.d.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/tsutils/util/control-flow.d.ts b/node_modules/tsutils/util/control-flow.d.ts index 58756b090..f7c101d82 100644 --- a/node_modules/tsutils/util/control-flow.d.ts +++ b/node_modules/tsutils/util/control-flow.d.ts @@ -1,2 +1,9 @@ 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; |