File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,14 @@ module ts {
385385 CrossingFunctionBoundary
386386 }
387387
388+ interface LabelledStatementInfo {
389+ addLabel ( label : Identifier ) : void ;
390+ pushCurrentLabelSet ( isIterationStatement : boolean ) : void ;
391+ pushFunctionBoundary ( ) : void ;
392+ pop ( ) : void ;
393+ nodeIsNestedInLabel ( label : Identifier , requireIterationStatement : boolean , stopAtFunctionBoundary : boolean ) : ControlBlockContext ;
394+ }
395+
388396 export function createSourceFile ( filename : string , sourceText : string , languageVersion : ScriptTarget ) : SourceFile {
389397 var file : SourceFile ;
390398 var scanner : Scanner ;
@@ -402,8 +410,7 @@ module ts {
402410 var inSwitchStatement = ControlBlockContext . NotNested ;
403411 var inIterationStatement = ControlBlockContext . NotNested ;
404412
405- var labelledStatementInfo = ( ( ) => {
406- // TODO(jfreeman): Implement a data structure for tracking labels
413+ var labelledStatementInfo : LabelledStatementInfo = ( ( ) => {
407414 var functionBoundarySentinel : StringSet = { } ;
408415 var currentLabelSet : StringSet ;
409416 var labelSetStack : StringSet [ ] ;
You can’t perform that action at this time.
0 commit comments