1{ 2 "copyright": [ 3 "Copyright (c) 2024 Huawei Device Co., Ltd.", 4 "Licensed under the Apache License, Version 2.0 (the 'License');", 5 "you may not use this file except in compliance with the License.", 6 "You may obtain a copy of the License at", 7 "", 8 "http://www.apache.org/licenses/LICENSE-2.0", 9 "", 10 "Unless required by applicable law or agreed to in writing, software", 11 "distributed under the License is distributed on an 'AS IS' BASIS,", 12 "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", 13 "See the License for the specific language governing permissions and", 14 "limitations under the License." 15 ], 16 "nodes": [ 17 { 18 "line": 27, 19 "column": 6, 20 "problem": "ObjectTypeLiteral", 21 "autofix": [ 22 { 23 "start": 761, 24 "end": 761, 25 "replacementText": "interface GeneratedTypeLiteralInterface_1 {\n x: number;\n y: string;\n}\n" 26 }, 27 { 28 "start": 777, 29 "end": 801, 30 "replacementText": "GeneratedTypeLiteralInterface_1" 31 } 32 ], 33 "suggest": "", 34 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 35 }, 36 { 37 "line": 28, 38 "column": 6, 39 "problem": "AnyType", 40 "suggest": "", 41 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 42 }, 43 { 44 "line": 35, 45 "column": 12, 46 "problem": "ObjectLiteralNoContextType", 47 "autofix": [ 48 { 49 "start": 832, 50 "end": 832, 51 "replacementText": "interface GeneratedObjectLiteralInterface_1 {\n a: number;\n b: string;\n}\n" 52 }, 53 { 54 "start": 890, 55 "end": 890, 56 "replacementText": ": GeneratedObjectLiteralInterface_1" 57 } 58 ], 59 "suggest": "", 60 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 61 }, 62 { 63 "line": 36, 64 "column": 11, 65 "problem": "AnyType", 66 "suggest": "", 67 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 68 }, 69 { 70 "line": 37, 71 "column": 11, 72 "problem": "ObjectTypeLiteral", 73 "autofix": [ 74 { 75 "start": 832, 76 "end": 832, 77 "replacementText": "interface GeneratedTypeLiteralInterface_2 {\n a: number;\n b: string;\n}\n" 78 }, 79 { 80 "start": 991, 81 "end": 1015, 82 "replacementText": "GeneratedTypeLiteralInterface_2" 83 } 84 ], 85 "suggest": "", 86 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 87 }, 88 { 89 "line": 37, 90 "column": 38, 91 "problem": "ObjectLiteralNoContextType", 92 "suggest": "", 93 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 94 }, 95 { 96 "line": 40, 97 "column": 16, 98 "problem": "ObjectLiteralNoContextType", 99 "suggest": "", 100 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 101 }, 102 { 103 "line": 42, 104 "column": 8, 105 "problem": "ObjectLiteralNoContextType", 106 "suggest": "", 107 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 108 }, 109 { 110 "line": 49, 111 "column": 8, 112 "problem": "ObjectLiteralNoContextType", 113 "suggest": "", 114 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 115 }, 116 { 117 "line": 51, 118 "column": 8, 119 "problem": "ObjectLiteralNoContextType", 120 "suggest": "", 121 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 122 }, 123 { 124 "line": 54, 125 "column": 8, 126 "problem": "ObjectLiteralNoContextType", 127 "suggest": "", 128 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 129 }, 130 { 131 "line": 56, 132 "column": 8, 133 "problem": "ObjectLiteralNoContextType", 134 "suggest": "", 135 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 136 }, 137 { 138 "line": 64, 139 "column": 3, 140 "problem": "LocalFunction", 141 "suggest": "", 142 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 143 }, 144 { 145 "line": 64, 146 "column": 20, 147 "problem": "ObjectLiteralNoContextType", 148 "autofix": [ 149 { 150 "start": 1687, 151 "end": 1687, 152 "replacementText": "interface GeneratedObjectLiteralInterface_2 {\n a: number;\n b: string;\n}\n" 153 }, 154 { 155 "start": 1740, 156 "end": 1740, 157 "replacementText": ": GeneratedObjectLiteralInterface_2" 158 } 159 ], 160 "suggest": "", 161 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 162 }, 163 { 164 "line": 67, 165 "column": 3, 166 "problem": "LocalFunction", 167 "suggest": "", 168 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 169 }, 170 { 171 "line": 67, 172 "column": 20, 173 "problem": "AnyType", 174 "suggest": "", 175 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 176 }, 177 { 178 "line": 70, 179 "column": 3, 180 "problem": "LocalFunction", 181 "suggest": "", 182 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 183 }, 184 { 185 "line": 70, 186 "column": 20, 187 "problem": "ObjectTypeLiteral", 188 "autofix": [ 189 { 190 "start": 1687, 191 "end": 1687, 192 "replacementText": "interface GeneratedTypeLiteralInterface_3 {\n a: number;\n b: string;\n}\n" 193 }, 194 { 195 "start": 1911, 196 "end": 1935, 197 "replacementText": "GeneratedTypeLiteralInterface_3" 198 } 199 ], 200 "suggest": "", 201 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 202 }, 203 { 204 "line": 70, 205 "column": 47, 206 "problem": "ObjectLiteralNoContextType", 207 "suggest": "", 208 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 209 }, 210 { 211 "line": 73, 212 "column": 3, 213 "problem": "LocalFunction", 214 "suggest": "", 215 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 216 }, 217 { 218 "line": 76, 219 "column": 3, 220 "problem": "LocalFunction", 221 "suggest": "", 222 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 223 }, 224 { 225 "line": 81, 226 "column": 7, 227 "problem": "ObjectLiteralNoContextType", 228 "suggest": "", 229 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 230 }, 231 { 232 "line": 83, 233 "column": 8, 234 "problem": "ObjectLiteralNoContextType", 235 "suggest": "", 236 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 237 }, 238 { 239 "line": 89, 240 "column": 3, 241 "problem": "LocalFunction", 242 "suggest": "", 243 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 244 }, 245 { 246 "line": 90, 247 "column": 12, 248 "problem": "ObjectLiteralNoContextType", 249 "autofix": [ 250 { 251 "start": 2377, 252 "end": 2377, 253 "replacementText": "interface GeneratedObjectLiteralInterface_3 {\n a: number;\n b: string;\n}\n" 254 }, 255 { 256 "start": 2445, 257 "end": 2462, 258 "replacementText": "({ a: 31, b: 'a' } as GeneratedObjectLiteralInterface_3)" 259 } 260 ], 261 "suggest": "", 262 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 263 }, 264 { 265 "line": 92, 266 "column": 3, 267 "problem": "LocalFunction", 268 "autofix": [ 269 { 270 "start": 2480, 271 "end": 2536, 272 "replacementText": "let bar2: () => any = (): any => {\n return { a: 32, b: 'b' };\n};" 273 } 274 ], 275 "suggest": "", 276 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 277 }, 278 { 279 "line": 92, 280 "column": 20, 281 "problem": "AnyType", 282 "suggest": "", 283 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 284 }, 285 { 286 "line": 95, 287 "column": 3, 288 "problem": "LocalFunction", 289 "autofix": [ 290 { 291 "start": 2565, 292 "end": 2642, 293 "replacementText": "let bar3: () => {\n a: number;\n b: string;\n} = (): {\n a: number;\n b: string;\n} => {\n return { a: 33, b: 'c' };\n};" 294 } 295 ], 296 "suggest": "", 297 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 298 }, 299 { 300 "line": 95, 301 "column": 20, 302 "problem": "ObjectTypeLiteral", 303 "autofix": [ 304 { 305 "start": 2377, 306 "end": 2377, 307 "replacementText": "interface GeneratedTypeLiteralInterface_4 {\n a: number;\n b: string;\n}\n" 308 }, 309 { 310 "start": 2582, 311 "end": 2606, 312 "replacementText": "GeneratedTypeLiteralInterface_4" 313 } 314 ], 315 "suggest": "", 316 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 317 }, 318 { 319 "line": 96, 320 "column": 12, 321 "problem": "ObjectLiteralNoContextType", 322 "suggest": "", 323 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 324 }, 325 { 326 "line": 98, 327 "column": 3, 328 "problem": "LocalFunction", 329 "autofix": [ 330 { 331 "start": 2655, 332 "end": 2709, 333 "replacementText": "let bar4: () => I = (): I => {\n return { a: 34, b: 'd' };\n};" 334 } 335 ], 336 "suggest": "", 337 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 338 }, 339 { 340 "line": 101, 341 "column": 3, 342 "problem": "LocalFunction", 343 "autofix": [ 344 { 345 "start": 2718, 346 "end": 2772, 347 "replacementText": "let bar5: () => C = (): C => {\n return { a: 35, b: 'e' };\n};" 348 } 349 ], 350 "suggest": "", 351 "rule": "Nested functions are not supported (arkts-no-nested-funcs)" 352 }, 353 { 354 "line": 109, 355 "column": 26, 356 "problem": "ObjectLiteralNoContextType", 357 "autofix": [ 358 { 359 "start": 2782, 360 "end": 2782, 361 "replacementText": "interface GeneratedObjectLiteralInterface_4 {\n a: number;\n b: string;\n}\n" 362 }, 363 { 364 "start": 2893, 365 "end": 2910, 366 "replacementText": "({ a: 41, b: 'a' } as GeneratedObjectLiteralInterface_4)" 367 } 368 ], 369 "suggest": "", 370 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 371 }, 372 { 373 "line": 109, 374 "column": 46, 375 "problem": "ObjectLiteralNoContextType", 376 "autofix": [ 377 { 378 "start": 2782, 379 "end": 2782, 380 "replacementText": "interface GeneratedObjectLiteralInterface_5 {\n a: number;\n b: string;\n}\n" 381 }, 382 { 383 "start": 2913, 384 "end": 2930, 385 "replacementText": "({ a: 42, b: 'b' } as GeneratedObjectLiteralInterface_5)" 386 } 387 ], 388 "suggest": "", 389 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 390 }, 391 { 392 "line": 110, 393 "column": 13, 394 "problem": "AnyType", 395 "suggest": "", 396 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 397 }, 398 { 399 "line": 111, 400 "column": 13, 401 "problem": "ObjectTypeLiteral", 402 "autofix": [ 403 { 404 "start": 2782, 405 "end": 2782, 406 "replacementText": "interface GeneratedTypeLiteralInterface_5 {\n a: number;\n b: string;\n}\n" 407 }, 408 { 409 "start": 3049, 410 "end": 3073, 411 "replacementText": "GeneratedTypeLiteralInterface_5" 412 } 413 ], 414 "suggest": "", 415 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 416 }, 417 { 418 "line": 112, 419 "column": 7, 420 "problem": "ObjectLiteralNoContextType", 421 "suggest": "", 422 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 423 }, 424 { 425 "line": 113, 426 "column": 7, 427 "problem": "ObjectLiteralNoContextType", 428 "suggest": "", 429 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 430 }, 431 { 432 "line": 119, 433 "column": 16, 434 "problem": "ArrayLiteralNoContextType", 435 "suggest": "", 436 "rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)" 437 }, 438 { 439 "line": 120, 440 "column": 5, 441 "problem": "ObjectLiteralNoContextType", 442 "autofix": [ 443 { 444 "start": 3294, 445 "end": 3294, 446 "replacementText": "interface GeneratedObjectLiteralInterface_6 {\n a: number;\n b: string;\n}\n" 447 }, 448 { 449 "start": 3347, 450 "end": 3364, 451 "replacementText": "({ a: 51, b: 'a' } as GeneratedObjectLiteralInterface_6)" 452 } 453 ], 454 "suggest": "", 455 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 456 }, 457 { 458 "line": 121, 459 "column": 5, 460 "problem": "ObjectLiteralNoContextType", 461 "autofix": [ 462 { 463 "start": 3294, 464 "end": 3294, 465 "replacementText": "interface GeneratedObjectLiteralInterface_7 {\n a: number;\n b: string;\n}\n" 466 }, 467 { 468 "start": 3370, 469 "end": 3387, 470 "replacementText": "({ a: 52, b: 'b' } as GeneratedObjectLiteralInterface_7)" 471 } 472 ], 473 "suggest": "", 474 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 475 }, 476 { 477 "line": 123, 478 "column": 15, 479 "problem": "AnyType", 480 "suggest": "", 481 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)" 482 }, 483 { 484 "line": 127, 485 "column": 15, 486 "problem": "ObjectTypeLiteral", 487 "autofix": [ 488 { 489 "start": 3294, 490 "end": 3294, 491 "replacementText": "interface GeneratedTypeLiteralInterface_6 {\n a: number;\n b: string;\n}\n" 492 }, 493 { 494 "start": 3519, 495 "end": 3543, 496 "replacementText": "GeneratedTypeLiteralInterface_6" 497 } 498 ], 499 "suggest": "", 500 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 501 }, 502 { 503 "line": 127, 504 "column": 44, 505 "problem": "ArrayLiteralNoContextType", 506 "suggest": "", 507 "rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)" 508 }, 509 { 510 "line": 128, 511 "column": 5, 512 "problem": "ObjectLiteralNoContextType", 513 "suggest": "", 514 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 515 }, 516 { 517 "line": 129, 518 "column": 5, 519 "problem": "ObjectLiteralNoContextType", 520 "suggest": "", 521 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)" 522 }, 523 { 524 "line": 22, 525 "column": 3, 526 "problem": "StrictDiagnostic", 527 "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.", 528 "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor." 529 }, 530 { 531 "line": 23, 532 "column": 3, 533 "problem": "StrictDiagnostic", 534 "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.", 535 "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor." 536 }, 537 { 538 "line": 27, 539 "column": 3, 540 "problem": "StrictDiagnostic", 541 "suggest": "Property 'q' has no initializer and is not definitely assigned in the constructor.", 542 "rule": "Property 'q' has no initializer and is not definitely assigned in the constructor." 543 }, 544 { 545 "line": 29, 546 "column": 3, 547 "problem": "StrictDiagnostic", 548 "suggest": "Property 'e' has no initializer and is not definitely assigned in the constructor.", 549 "rule": "Property 'e' has no initializer and is not definitely assigned in the constructor." 550 }, 551 { 552 "line": 30, 553 "column": 3, 554 "problem": "StrictDiagnostic", 555 "suggest": "Property 'r' has no initializer and is not definitely assigned in the constructor.", 556 "rule": "Property 'r' has no initializer and is not definitely assigned in the constructor." 557 } 558 ] 559}