|
| 1 | +//// [tests/cases/conformance/controlFlow/controlFlowElementAccessNoCrash1.ts] //// |
| 2 | + |
| 3 | +=== controlFlowElementAccessNoCrash1.ts === |
| 4 | +interface TestTscEdit { |
| 5 | +>TestTscEdit : Symbol(TestTscEdit, Decl(controlFlowElementAccessNoCrash1.ts, 0, 0)) |
| 6 | + |
| 7 | + caption: string; |
| 8 | +>caption : Symbol(TestTscEdit.caption, Decl(controlFlowElementAccessNoCrash1.ts, 0, 23)) |
| 9 | + |
| 10 | + commandLineArgs?: readonly string[]; |
| 11 | +>commandLineArgs : Symbol(TestTscEdit.commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 1, 18)) |
| 12 | +} |
| 13 | + |
| 14 | +interface TestTscCompile { |
| 15 | +>TestTscCompile : Symbol(TestTscCompile, Decl(controlFlowElementAccessNoCrash1.ts, 3, 1)) |
| 16 | + |
| 17 | + subScenario: string; |
| 18 | +>subScenario : Symbol(TestTscCompile.subScenario, Decl(controlFlowElementAccessNoCrash1.ts, 5, 26)) |
| 19 | + |
| 20 | + commandLineArgs: readonly string[]; |
| 21 | +>commandLineArgs : Symbol(TestTscCompile.commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 6, 22)) |
| 22 | +} |
| 23 | + |
| 24 | +interface VerifyTscEditDiscrepanciesInput { |
| 25 | +>VerifyTscEditDiscrepanciesInput : Symbol(VerifyTscEditDiscrepanciesInput, Decl(controlFlowElementAccessNoCrash1.ts, 8, 1)) |
| 26 | + |
| 27 | + index: number; |
| 28 | +>index : Symbol(VerifyTscEditDiscrepanciesInput.index, Decl(controlFlowElementAccessNoCrash1.ts, 10, 43)) |
| 29 | + |
| 30 | + edits: readonly TestTscEdit[]; |
| 31 | +>edits : Symbol(VerifyTscEditDiscrepanciesInput.edits, Decl(controlFlowElementAccessNoCrash1.ts, 11, 16)) |
| 32 | +>TestTscEdit : Symbol(TestTscEdit, Decl(controlFlowElementAccessNoCrash1.ts, 0, 0)) |
| 33 | + |
| 34 | + commandLineArgs: TestTscCompile["commandLineArgs"]; |
| 35 | +>commandLineArgs : Symbol(VerifyTscEditDiscrepanciesInput.commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 12, 32)) |
| 36 | +>TestTscCompile : Symbol(TestTscCompile, Decl(controlFlowElementAccessNoCrash1.ts, 3, 1)) |
| 37 | +} |
| 38 | + |
| 39 | +function testTscCompile(input: TestTscCompile) {} |
| 40 | +>testTscCompile : Symbol(testTscCompile, Decl(controlFlowElementAccessNoCrash1.ts, 14, 1)) |
| 41 | +>input : Symbol(input, Decl(controlFlowElementAccessNoCrash1.ts, 16, 24)) |
| 42 | +>TestTscCompile : Symbol(TestTscCompile, Decl(controlFlowElementAccessNoCrash1.ts, 3, 1)) |
| 43 | + |
| 44 | +function verifyTscEditDiscrepancies({ |
| 45 | +>verifyTscEditDiscrepancies : Symbol(verifyTscEditDiscrepancies, Decl(controlFlowElementAccessNoCrash1.ts, 16, 49)) |
| 46 | + |
| 47 | + index, |
| 48 | +>index : Symbol(index, Decl(controlFlowElementAccessNoCrash1.ts, 18, 37)) |
| 49 | + |
| 50 | + edits, |
| 51 | +>edits : Symbol(edits, Decl(controlFlowElementAccessNoCrash1.ts, 19, 8)) |
| 52 | + |
| 53 | + commandLineArgs, |
| 54 | +>commandLineArgs : Symbol(commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 20, 8)) |
| 55 | + |
| 56 | +}: VerifyTscEditDiscrepanciesInput) { |
| 57 | +>VerifyTscEditDiscrepanciesInput : Symbol(VerifyTscEditDiscrepanciesInput, Decl(controlFlowElementAccessNoCrash1.ts, 8, 1)) |
| 58 | + |
| 59 | + const { caption } = edits[index]; |
| 60 | +>caption : Symbol(caption, Decl(controlFlowElementAccessNoCrash1.ts, 23, 9)) |
| 61 | +>edits : Symbol(edits, Decl(controlFlowElementAccessNoCrash1.ts, 19, 8)) |
| 62 | +>index : Symbol(index, Decl(controlFlowElementAccessNoCrash1.ts, 18, 37)) |
| 63 | + |
| 64 | + testTscCompile({ |
| 65 | +>testTscCompile : Symbol(testTscCompile, Decl(controlFlowElementAccessNoCrash1.ts, 14, 1)) |
| 66 | + |
| 67 | + subScenario: caption, |
| 68 | +>subScenario : Symbol(subScenario, Decl(controlFlowElementAccessNoCrash1.ts, 24, 18)) |
| 69 | +>caption : Symbol(caption, Decl(controlFlowElementAccessNoCrash1.ts, 23, 9)) |
| 70 | + |
| 71 | + commandLineArgs: edits[index].commandLineArgs || commandLineArgs, |
| 72 | +>commandLineArgs : Symbol(commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 25, 25)) |
| 73 | +>edits[index].commandLineArgs : Symbol(TestTscEdit.commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 1, 18)) |
| 74 | +>edits : Symbol(edits, Decl(controlFlowElementAccessNoCrash1.ts, 19, 8)) |
| 75 | +>index : Symbol(index, Decl(controlFlowElementAccessNoCrash1.ts, 18, 37)) |
| 76 | +>commandLineArgs : Symbol(TestTscEdit.commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 1, 18)) |
| 77 | +>commandLineArgs : Symbol(commandLineArgs, Decl(controlFlowElementAccessNoCrash1.ts, 20, 8)) |
| 78 | + |
| 79 | + }); |
| 80 | +} |
| 81 | + |
0 commit comments