|
| 1 | + interface Configuration { |
| 2 | +// definition syntax 1.0.0 src/`infer-relationship.ts`/ |
| 3 | +//documentation ```ts\nmodule "infer-relationship.ts"\n``` |
| 4 | +// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/Configuration# |
| 5 | +// documentation ```ts\ninterface Configuration\n``` |
| 6 | + property: number |
| 7 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 8 | +// documentation ```ts\n(property) property: number\n``` |
| 9 | + } |
| 10 | + |
| 11 | + function random(): number { |
| 12 | +// ^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 13 | +// documentation ```ts\nfunction random(): number\n``` |
| 14 | + return Math.random() |
| 15 | +// ^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Math# |
| 16 | +// ^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Math. |
| 17 | +// ^^^^ reference typescript 4.8.4 lib/`lib.es2015.core.d.ts`/Math# |
| 18 | +// ^^^^ reference typescript 4.8.4 lib/`lib.es2015.symbol.wellknown.d.ts`/Math# |
| 19 | +// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Math#random(). |
| 20 | + } |
| 21 | + export function returnStatement(): Configuration { |
| 22 | +// ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/returnStatement(). |
| 23 | +// documentation ```ts\nfunction returnStatement(): Configuration\n``` |
| 24 | +// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/Configuration# |
| 25 | + if (random() > 0) { |
| 26 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 27 | + return { |
| 28 | + property: 41, |
| 29 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property0: |
| 30 | +// documentation ```ts\n(property) property: number\n``` |
| 31 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 32 | + } |
| 33 | + } |
| 34 | + for (let i = 0; i < 9; i++) { |
| 35 | +// ^ definition local 2 |
| 36 | +// documentation ```ts\nvar i: number\n``` |
| 37 | +// ^ reference local 2 |
| 38 | +// ^ reference local 2 |
| 39 | + if (random() > i) { |
| 40 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 41 | +// ^ reference local 2 |
| 42 | + return { |
| 43 | + property: 41, |
| 44 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property1: |
| 45 | +// documentation ```ts\n(property) property: number\n``` |
| 46 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 47 | + } |
| 48 | + } |
| 49 | + } |
| 50 | + for (const i of [1, 2, 3]) { |
| 51 | +// ^ definition local 5 |
| 52 | +// documentation ```ts\nvar i: number\n``` |
| 53 | + if (random() > i) { |
| 54 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 55 | +// ^ reference local 5 |
| 56 | + return { |
| 57 | + property: 41, |
| 58 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property2: |
| 59 | +// documentation ```ts\n(property) property: number\n``` |
| 60 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | + for (const i in { '1': 2 }) { |
| 65 | +// ^ definition local 8 |
| 66 | +// documentation ```ts\nvar i: string\n``` |
| 67 | +// ^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/`'1'0`: |
| 68 | +// documentation ```ts\n(property) '1': number\n``` |
| 69 | + if (random() > Number.parseInt(i)) { |
| 70 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 71 | +// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Number# |
| 72 | +// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Number. |
| 73 | +// ^^^^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Number# |
| 74 | +// ^^^^^^ reference typescript 4.8.4 lib/`lib.es2020.number.d.ts`/Number# |
| 75 | +// ^^^^^^^^ reference typescript 4.8.4 lib/`lib.es2015.core.d.ts`/NumberConstructor#parseInt(). |
| 76 | +// ^ reference local 8 |
| 77 | + return { |
| 78 | + property: 41, |
| 79 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property3: |
| 80 | +// documentation ```ts\n(property) property: number\n``` |
| 81 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + while (random() < 0) { |
| 86 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 87 | + return { |
| 88 | + property: 41, |
| 89 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property4: |
| 90 | +// documentation ```ts\n(property) property: number\n``` |
| 91 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 92 | + } |
| 93 | + } |
| 94 | + do { |
| 95 | + if (random() > 0) { |
| 96 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 97 | + return { |
| 98 | + property: 41, |
| 99 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property5: |
| 100 | +// documentation ```ts\n(property) property: number\n``` |
| 101 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 102 | + } |
| 103 | + } |
| 104 | + } while (random() < 0) |
| 105 | +// ^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/random(). |
| 106 | + |
| 107 | + return { |
| 108 | + property: 42, |
| 109 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property6: |
| 110 | +// documentation ```ts\n(property) property: number\n``` |
| 111 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`infer-relationship.ts`/Configuration#property. |
| 112 | + } |
| 113 | + } |
| 114 | + |
| 115 | + export function returnStatementInsideArgumentExpression(): Configuration[] { |
| 116 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/returnStatementInsideArgumentExpression(). |
| 117 | +// documentation ```ts\nfunction returnStatementInsideArgumentExpression(): Configuration[]\n``` |
| 118 | +// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/Configuration# |
| 119 | + return [1].map<Configuration>(number => { |
| 120 | +// ^^^ reference typescript 4.8.4 lib/`lib.es5.d.ts`/Array#map(). |
| 121 | +// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`infer-relationship.ts`/Configuration# |
| 122 | +// ^^^^^^ definition local 12 |
| 123 | +// documentation ```ts\n(parameter) number: number\n``` |
| 124 | + const incremented = number + 1 |
| 125 | +// ^^^^^^^^^^^ definition local 15 |
| 126 | +// documentation ```ts\nvar incremented: number\n``` |
| 127 | +// ^^^^^^ reference local 12 |
| 128 | + return { |
| 129 | + property: incremented, |
| 130 | +// ^^^^^^^^ definition syntax 1.0.0 src/`infer-relationship.ts`/property7: |
| 131 | +// documentation ```ts\n(property) property: number\n``` |
| 132 | +// ^^^^^^^^^^^ reference local 15 |
| 133 | + } |
| 134 | + }) |
| 135 | + } |
| 136 | + |
0 commit comments