2018-05-19 00:25:24 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2018-05-22 16:56:29 +02:00
|
|
|
/////* a */[|label|]/* b */:/* c */while (1) {}
|
2018-05-19 00:25:24 +02:00
|
|
|
|
2018-05-22 16:56:29 +02:00
|
|
|
verify.getSuggestionDiagnostics([{
|
|
|
|
message: "Unused label.",
|
|
|
|
code: 7028,
|
|
|
|
reportsUnnecessary: true,
|
|
|
|
}]);
|
2018-05-19 00:25:24 +02:00
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Remove unused label",
|
|
|
|
newFileContent:
|
|
|
|
`/* a */while (1) {}`,
|
|
|
|
});
|