1{ 2 "@linkInitialize": { 3 "message": "The '@Link' property cannot be specified a default value.", 4 "type": "ERROR", 5 "code": "10905304", 6 "solutions": ["Please initialize the rules according to the decorator."] 7 }, 8 "@objectLinkInitialize": { 9 "message": "The '@ObjectLink' property cannot be specified a default value.", 10 "type": "ERROR", 11 "code": "10905304", 12 "solutions": ["Please initialize the rules according to the decorator."] 13 }, 14 "rootContainerCheck": { 15 "message": "In an '@Entry' decorated component, the 'build' method can have only one root node, which must be a container component.", 16 "type": "ERROR", 17 "code": "10905210" 18 }, 19 "arkUIComponent": { 20 "message": "Only UI component syntax can be written here.", 21 "type": "ERROR", 22 "code": "10905209" 23 }, 24 "@BuilderParam": { 25 "message": "In the trailing lambda case, 'CustomContainer' must have one and only one property decorated with '@BuilderParam'.", 26 "type": "ERROR", 27 "code": "10905102" 28 }, 29 "ifComponent": [ 30 { 31 "message": "Condition expression cannot be null in if statement.", 32 "type": "ERROR", 33 "code": "10905208" 34 }, 35 { 36 "message": "Then statement cannot be null in if statement.", 37 "type": "ERROR", 38 "code": "10905207" 39 }, 40 { 41 "message": "'' does not meet UI component syntax.", 42 "type": "ERROR", 43 "code": "10905204" 44 } 45 ], 46 "idCheck": { 47 "message": "The current component id \"1\" is duplicate with ${const path = require('path');path.resolve(__dirname, '../../../test/transform_ut/application/entry/src/main/ets/pages/utForValidate/Decorators/process_component_build/idCheck.ets')}:20:21.", 48 "type": "WARN" 49 }, 50 "arkUIStandard": { 51 "message": "'Text('Hello').onClick' does not meet UI component syntax.", 52 "type": "ERROR", 53 "code": "10905206" 54 }, 55 "stateStyles": { 56 "message": "'.stateStyles' doesn't conform standard.", 57 "type": "ERROR", 58 "code": "10905203" 59 }, 60 "buttonCheck": { 61 "message": "The Button component with a label parameter can not have any child.", 62 "type": "ERROR", 63 "code": "10905202" 64 }, 65 "attributeCheck": { 66 "message": "'ForEach(this.arr, () =>{}, (item: string) => item).h' does not meet UI component syntax.", 67 "type": "ERROR", 68 "code": "10905204" 69 }, 70 "validateDecorators": { 71 "message": "The static variable of struct cannot be used together with built-in decorators.", 72 "type": "ERROR", 73 "code": "10905313" 74 }, 75 "processComponentMethod": { 76 "message": "The 'build' method can not have arguments.", 77 "type": "ERROR", 78 "code": "10905106" 79 }, 80 "@StylesParamChack": { 81 "message": "'@Styles' decorated functions and methods cannot have arguments.", 82 "type": "ERROR", 83 "code": "10905105" 84 }, 85 "updateHeritageClauses": { 86 "message": "Structs are not allowed to inherit from classes or implement interfaces.", 87 "type": "ERROR", 88 "code": "10905212" 89 }, 90 "validateBuildMethodCount": { 91 "message": "The struct 'ValidateBuildMethodCountIndex' must have at least and at most one 'build' method.", 92 "type": "ERROR", 93 "code": "10905103", 94 "solutions": ["A structurally modified page must have at least one and no more than one 'build' method."] 95 }, 96 "validateHasController": { 97 "message": "The '@CustomDialog' decorated custom component must contain a property of the CustomDialogController type.", 98 "type": "ERROR", 99 "code": "10905211" 100 }, 101 "processWatch": { 102 "message": "'@Watch' cannot be used with 'onWatch'. Apply it only to parameters that correspond to existing methods.", 103 "type": "ERROR", 104 "code": "10905301" 105 }, 106 "updateBuilderParamProperty": { 107 "message": "'@BuilderParam' property can only initialized by '@Builder' function or '@LocalBuilder' method in struct.", 108 "type": "ERROR", 109 "code": "10905101" 110 }, 111 "validateMultiDecorators": { 112 "message": "The property 'lang' cannot have multiple state management decorators.", 113 "type": "ERROR", 114 "code": "10905302" 115 }, 116 "validatePropertyNonDefaultValue": { 117 "message": "The '@State' property 'message' must be specified a default value.", 118 "type": "ERROR", 119 "code": "10905303" 120 }, 121 "validatePropertyDefaultValue": { 122 "message": "The '@Link' property cannot be specified a default value.", 123 "type": "ERROR", 124 "code": "10905304", 125 "solutions": ["Please initialize the rules according to the decorator."] 126 }, 127 "validatePropertyNonType": { 128 "message": "The property 'message' must specify a type.", 129 "type": "ERROR", 130 "code": "10905305" 131 }, 132 "validateHasIllegalDecoratorInEntry": { 133 "message": "The '@Entry' component 'ValidateHasIllegalDecoratorInEntryIndex' cannot have the '@Prop' property 'message'.", 134 "type": "WARN" 135 }, 136 "validateHasIllegalQuestionToken": { 137 "message": "The @ObjectLink property 'message' cannot be an optional parameter.", 138 "type": "WARN" 139 }, 140 "validateForbiddenUseStateType": { 141 "message": "The '@State' property 'message' cannot be a 'CustomDialogController' object.", 142 "type": "ERROR", 143 "code": "10905308" 144 }, 145 "validateDuplicateDecorator": { 146 "message": "The inner decorator '@State' cannot be used together with custom decorator.", 147 "type": "ERROR", 148 "code": "10905312" 149 }, 150 "validateWatchDecorator": { 151 "message": "Regular variable 'message' can not be decorated with '@Watch'.", 152 "type": "ERROR", 153 "code": "10905310" 154 }, 155 "validateWatchParam": { 156 "message": "'@Watch' cannot be used with '111'. Apply it only to 'string' parameters.", 157 "type": "ERROR", 158 "code": "10905311" 159 }, 160 "validateForbiddenSpecifyDefaultValue": [ 161 { 162 "message": "The '@Link' property cannot be specified a default value.", 163 "type": "ERROR", 164 "code": "10905304", 165 "solutions": ["Please initialize the rules according to the decorator."] 166 }, 167 { 168 "message": "The '@ObjectLink' property cannot be specified a default value.", 169 "type": "ERROR", 170 "code": "10905304", 171 "solutions": ["Please initialize the rules according to the decorator."] 172 } 173 ], 174 "validateCustomDecorator": { 175 "message": "The inner decorator '@State' cannot be used together with custom decorator.", 176 "type": "ERROR", 177 "code": "10905312" 178 }, 179 "checkBuilder$$": { 180 "message": "Unrecognized property 'paramA1', make sure it can be assigned to @Link property 'message' by yourself.", 181 "type": "WARN" 182 }, 183 "validateForbiddenToInitViaParam": { 184 "message": "The '@StorageProp' property 'message' in the custom component 'ValidateForbiddenToInitViaParamChild' cannot be initialized here (forbidden to specify).", 185 "type": "ERROR", 186 "code": "10905317" 187 }, 188 "validateMandatoryToInitViaParam": { 189 "message": "The property 'message' in the custom component 'ValidateMandatoryToInitViaParamChild' is missing (mandatory to specify).", 190 "type": "ERROR", 191 "code": "10905316" 192 }, 193 "validateInitDecorator": [ 194 { 195 "message": "'@Require' decorated 'build_value' must be initialized through the component constructor.", 196 "type": "ERROR", 197 "code": "10905359" 198 }, 199 { 200 "message": "'@Require' decorated 'prop_value' must be initialized through the component constructor.", 201 "type": "ERROR", 202 "code": "10905359" 203 }, 204 { 205 "message": "'@Require' decorated 'regular_value' must be initialized through the component constructor.", 206 "type": "ERROR", 207 "code": "10905359" 208 }, 209 { 210 "message": "'@Require' decorated 'state_value' must be initialized through the component constructor.", 211 "type": "ERROR", 212 "code": "10905359" 213 }, 214 { 215 "message": "'@Require' decorated 'provide_value' must be initialized through the component constructor.", 216 "type": "ERROR", 217 "code": "10905359" 218 } 219 ], 220 "validateIllegalInitFromParent": { 221 "message": "The 'regular' property 'message' cannot be assigned to the '@Link' property 'message'.", 222 "type": "ERROR", 223 "code": "10905315" 224 }, 225 "validateNonLinkWithDollar": { 226 "message": "Property 'message' cannot initialize using '$' to create a reference to a variable.", 227 "type": "ERROR", 228 "code": "10905314" 229 }, 230 "validateModuleName": { 231 "message": "The module name 'Button' can not be the same as the inner component name.", 232 "type": "ERROR", 233 "code": "10905235" 234 }, 235 "notComponent": [ 236 { 237 "message": "Decorator '@Component', '@ComponentV2', or '@CustomDialog' is missing for struct 'EntryComponent'.", 238 "type": "ERROR", 239 "code": "10905233" 240 }, 241 { 242 "message": "A page configured in 'main_pages.json or build-profile.json5' must have one and only one '@Entry' decorator.", 243 "type": "ERROR", 244 "code": "10905402", 245 "solutions": ["Please make sure that the splash page has one and only one '@Entry' decorator."] 246 } 247 ], 248 "notConcurrent": { 249 "message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.", 250 "type": "WARN" 251 }, 252 "notConcurrentFun": { 253 "message": "'@Concurrent' can not be used on method, please use it on function declaration.", 254 "type": "ERROR", 255 "code": "10905123" 256 }, 257 "notDecorator": { 258 "message": "The struct 'IndexDecorator' use invalid decorator.", 259 "type": "WARN" 260 }, 261 "StylesDuplicate": { 262 "message": "The struct 'StylesDuplicate' use invalid decorator.", 263 "type": "WARN" 264 }, 265 "vaildateDecorator": { 266 "message": "The struct 'VaildateDecoratorIndex' use invalid decorator.", 267 "type": "WARN" 268 }, 269 "state": { 270 "message": "The struct 'Button' cannot have the same name as the built-in component 'Button'.", 271 "type": "ERROR", 272 "code": "10905227" 273 }, 274 "StructNameInvalid": { 275 "message": "The struct 'gesture' cannot have the same name as the built-in attribute 'gesture'.", 276 "type": "ERROR", 277 "code": "10905228" 278 }, 279 "notConcurrentFunAster": { 280 "message": "'@Concurrent' can not be used on 'Generator' function declaration.", 281 "type": "ERROR", 282 "code": "10905122" 283 }, 284 "NoStructDeco": { 285 "message": "The '@Component' decorator can only be used with 'struct'.", 286 "type": "ERROR", 287 "code": "10905337" 288 }, 289 "MethodNoExtend": { 290 "message": "Use the '@Extend' decorator only in the global scope.", 291 "type": "ERROR", 292 "code": "10905113" 293 }, 294 "OnlyStructDeco": { 295 "message": "Use the '@Builder' decorator only in the global scope or in a struct.", 296 "type": "ERROR", 297 "code": "10905114" 298 }, 299 "NoChild": { 300 "message": "The component 'Image' can't have any child.", 301 "type": "ERROR", 302 "code": "10905222" 303 }, 304 "OneChild": { 305 "message": "The 'Button' component can have only one child component.", 306 "type": "ERROR", 307 "code": "10905220" 308 }, 309 "NotSupportResrcParam": { 310 "message": "Invalid resource file parameter. Enter a value in the format of 'xxx.yyy.zzz'.", 311 "type": "ERROR", 312 "code": "10905332" 313 }, 314 "ExtendOneChild": { 315 "message": "'@Extend' should have one and only one parameter.", 316 "type": "ERROR", 317 "code": "10905108" 318 }, 319 "UnknownSrc": { 320 "message": "Unknown resource source 'hap'.", 321 "type": "ERROR", 322 "code": "10903331" 323 }, 324 "UnknownSrcType": { 325 "message": "Unknown resource type 'iroha'.", 326 "type": "ERROR", 327 "code": "10903330" 328 }, 329 "UnknownSrcName": { 330 "message": "Unknown resource name 'tari'.", 331 "type": "ERROR", 332 "code": "10903329" 333 }, 334 "NotSupportResrcType": { 335 "message": "The resource type 'font' is not supported.", 336 "type": "ERROR", 337 "code": "10906334" 338 }, 339 "NoSrc": { 340 "message": "No such 'test.png' resource in current module.", 341 "type": "ERROR", 342 "code": "10904333" 343 }, 344 "EntryDecoParam": { 345 "message": "'@Entry' should have a parameter, like '@Entry (storage)'.", 346 "type": "WARN" 347 }, 348 "StylesNoParam": { 349 "message": "'@Styles' decorated functions and methods cannot have arguments.", 350 "type": "ERROR", 351 "code": "10905105" 352 }, 353 "ExceededPreview": { 354 "message": "A page can contain at most 10 '@Preview' decorators.", 355 "type": "ERROR", 356 "code": "10905404" 357 }, 358 "ExceededEntry": [ 359 { 360 "message": "A page can't contain more than one '@Entry' decorator.", 361 "type": "ERROR", 362 "code": "10905231" 363 }, 364 { 365 "message": "A page configured in 'main_pages.json or build-profile.json5' must have one and only one '@Entry' decorator.", 366 "type": "ERROR", 367 "code": "10905402", 368 "solutions": ["Please make sure that the splash page has one and only one '@Entry' decorator."] 369 } 370 ], 371 "extendAttributeDuplicate": [ 372 { 373 "message": "The '@Extend' function cannot have the same name as the built-in style attribute 'toolbarConfiguration' of the component 'Navigation'.", 374 "type": "WARN" 375 }, 376 { 377 "message": "Duplicate '@Styles' decorators for function are not allowed.", 378 "type": "WARN" 379 } 380 ], 381 "extendAttributeDuplicate2": [ 382 { 383 "message": "The '@Extend' function cannot have the same name as the built-in style attribute 'toolbarConfiguration' of the component 'Navigation'.", 384 "type": "ERROR", 385 "code": "10905360" 386 }, 387 { 388 "message": "Duplicate '@Styles' decorators for function are not allowed.", 389 "type": "WARN" 390 } 391 ], 392 "animatableExtendAttributeDuplicate": { 393 "message": "Duplicate '@Styles' decorators for function are not allowed.", 394 "type": "WARN" 395 }, 396 "OneEntry": { 397 "message": "A page configured in 'main_pages.json or build-profile.json5' must have one and only one '@Entry' decorator.", 398 "type": "ERROR", 399 "code": "10905402", 400 "solutions": ["Please make sure that the splash page has one and only one '@Entry' decorator."] 401 }, 402 "notMethodDeco": { 403 "message": "'@State' can not decorate the method.", 404 "type": "ERROR", 405 "code": "10905112" 406 }, 407 "checkNonspecificParents": { 408 "message": "The 'Blank' component can only be nested in the 'Row,Column,Flex' parent component.", 409 "type": "ERROR", 410 "code": "10905201" 411 }, 412 "@Trace": [ 413 { 414 "message": "The '@Trace' decorator can decorate only member variables of a class.", 415 "type": "ERROR", 416 "code": "10905345" 417 }, 418 { 419 "message": "The '@Trace' can decorate only member 'variables' within a 'class' decorated with '@ObservedV2'.", 420 "type": "ERROR", 421 "code": "10905343" 422 } 423 ], 424 "@Type": [ 425 { 426 "message": "The '@Type' decorator can decorate only member variables of a class.", 427 "type": "ERROR", 428 "code": "10905345" 429 }, 430 { 431 "message": "The '@Type' decorator can not be used in a 'class' decorated with '@Sendable'.", 432 "type": "ERROR", 433 "code": "10905342" 434 }, 435 { 436 "message": "The '@Type' can decorate only member variables in a 'class'.", 437 "type": "ERROR", 438 "code": "10905340" 439 }, 440 { 441 "message": "The '@Type' decorator can not be used in a 'class' decorated with '@Observed'.", 442 "type": "ERROR", 443 "code": "10905341" 444 }, 445 { 446 "message": "The '@Type' can decorate only member variables in a 'class'.", 447 "type": "ERROR", 448 "code": "10905340" 449 } 450 ], 451 "validate_track_observed": [ 452 { 453 "message": "The struct 'child' use invalid decorator.", 454 "type": "WARN" 455 }, 456 { 457 "message": "The '@Trace' decorator can decorate only member variables of a class.", 458 "type": "ERROR", 459 "code": "10905345" 460 }, 461 { 462 "message": "The '@ObservedV2' decorator can decorate only member variables of a class.", 463 "type": "ERROR", 464 "code": "10905345" 465 }, 466 { 467 "message": "The '@Trace' can decorate only member 'variables' within a 'class' decorated with '@ObservedV2'.", 468 "type": "ERROR", 469 "code": "10905343" 470 } 471 ], 472 "validateAccessQualifier": [ 473 { 474 "message": "Property 'storage_value' can not be decorated with both '@StorageLink' and public.", 475 "type": "WARN" 476 }, 477 { 478 "message": "Property 'consume_value' can not be decorated with both '@Consume' and public.", 479 "type": "WARN" 480 }, 481 { 482 "message": "Property 'link_value' can not be decorated with both '@Link' and private.", 483 "type": "WARN" 484 }, 485 { 486 "message": "The member attributes of a struct can not be protected.", 487 "type": "WARN" 488 }, 489 { 490 "message": "Property 'prop_value' can not be decorated with both '@Require' and private.", 491 "type": "WARN" 492 }, 493 { 494 "message": "Property 'value' can not be decorated with both '@Require' and private.", 495 "type": "WARN" 496 }, 497 { 498 "message": "Property 'regular_value' is private and can not be initialized through the component constructor.", 499 "type": "WARN" 500 }, 501 { 502 "message": "Property 'state_value' is private and can not be initialized through the component constructor.", 503 "type": "WARN" 504 }, 505 { 506 "message": "Property 'prop_value' is private and can not be initialized through the component constructor.", 507 "type": "WARN" 508 }, 509 { 510 "message": "Property 'value' is private and can not be initialized through the component constructor.", 511 "type": "WARN" 512 } 513 ], 514 "@Monitor": [ 515 { 516 "message": "The '@Monitor' can decorate only member 'method' within a 'class' decorated with '@ObservedV2'.", 517 "type": "ERROR", 518 "code": "10905343" 519 } 520 ], 521 "v2DecoratorInComponent": [ 522 { 523 "message": "The '@Local' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 524 "type": "ERROR", 525 "code": "10905338" 526 }, 527 { 528 "message": "The '@Param' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 529 "type": "ERROR", 530 "code": "10905338" 531 }, 532 { 533 "message": "The '@Param' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 534 "type": "ERROR", 535 "code": "10905338" 536 }, 537 { 538 "message": "The '@Once' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 539 "type": "ERROR", 540 "code": "10905338" 541 }, 542 { 543 "message": "The '@Once' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 544 "type": "ERROR", 545 "code": "10905338" 546 }, 547 { 548 "message": "The '@Event' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 549 "type": "ERROR", 550 "code": "10905338" 551 }, 552 { 553 "message": "The '@Provider' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 554 "type": "ERROR", 555 "code": "10905338" 556 }, 557 { 558 "message": "The '@Consumer' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 559 "type": "ERROR", 560 "code": "10905338" 561 }, 562 { 563 "message": "The '@Computed' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 564 "type": "ERROR", 565 "code": "10905338" 566 }, 567 { 568 "message": "The '@Monitor' decorator can only be used in a 'struct' decorated with '@ComponentV2'.", 569 "type": "ERROR", 570 "code": "10905338" 571 } 572 ], 573 "v1DecoratorInComponentV2": [ 574 { 575 "message": "The '@State' decorator can only be used in a 'struct' decorated with '@Component'.", 576 "type": "ERROR", 577 "code": "10905339" 578 }, 579 { 580 "message": "The '@Prop' decorator can only be used in a 'struct' decorated with '@Component'.", 581 "type": "ERROR", 582 "code": "10905339" 583 }, 584 { 585 "message": "The '@Link' decorator can only be used in a 'struct' decorated with '@Component'.", 586 "type": "ERROR", 587 "code": "10905339" 588 }, 589 { 590 "message": "The '@Provide' decorator can only be used in a 'struct' decorated with '@Component'.", 591 "type": "ERROR", 592 "code": "10905339" 593 }, 594 { 595 "message": "The '@Consume' decorator can only be used in a 'struct' decorated with '@Component'.", 596 "type": "ERROR", 597 "code": "10905339" 598 }, 599 { 600 "message": "The '@Watch' decorator can only be used in a 'struct' decorated with '@Component'.", 601 "type": "ERROR", 602 "code": "10905339" 603 }, 604 { 605 "message": "The '@State' decorator can only be used in a 'struct' decorated with '@Component'.", 606 "type": "ERROR", 607 "code": "10905339" 608 }, 609 { 610 "message": "The '@Watch' decorator can only be used in a 'struct' decorated with '@Component'.", 611 "type": "ERROR", 612 "code": "10905339" 613 }, 614 { 615 "message": "The '@StorageLink' decorator can only be used in a 'struct' decorated with '@Component'.", 616 "type": "ERROR", 617 "code": "10905339" 618 }, 619 { 620 "message": "The '@StorageProp' decorator can only be used in a 'struct' decorated with '@Component'.", 621 "type": "ERROR", 622 "code": "10905339" 623 }, 624 { 625 "message": "The '@LocalStorageLink' decorator can only be used in a 'struct' decorated with '@Component'.", 626 "type": "ERROR", 627 "code": "10905339" 628 }, 629 { 630 "message": "The '@LocalStorageProp' decorator can only be used in a 'struct' decorated with '@Component'.", 631 "type": "ERROR", 632 "code": "10905339" 633 }, 634 { 635 "message": "The '@ObjectLink' decorator can only be used in a 'struct' decorated with '@Component'.", 636 "type": "ERROR", 637 "code": "10905339" 638 } 639 ], 640 "componentV2BothWithComponent": [ 641 { 642 "message": "The struct 'componentV2BothWithComponent' can not be decorated with '@ComponentV2' and '@Component', '@Reusable', '@CustomDialog' at the same time.", 643 "type": "ERROR", 644 "code": "10905229" 645 }, 646 { 647 "message": "The struct 'componentV2BothWithComponent1' can not be decorated with '@ComponentV2' and '@Component', '@Reusable', '@CustomDialog' at the same time.", 648 "type": "ERROR", 649 "code": "10905229" 650 }, 651 { 652 "message": "The struct 'componentV2BothWithComponent2' can not be decorated with '@ComponentV2' and '@Component', '@Reusable', '@CustomDialog' at the same time.", 653 "type": "ERROR", 654 "code": "10905229" 655 } 656 ], 657 "mutiDecoratorInComponentV2": [ 658 { 659 "message": "The member property or method can not be decorated by multiple built-in decorators.", 660 "type": "ERROR", 661 "code": "10905121" 662 }, 663 { 664 "message": "The member property or method can not be decorated by multiple built-in decorators.", 665 "type": "ERROR", 666 "code": "10905121" 667 } 668 ], 669 "v2DecoratorInClass": [ 670 { 671 "message": "The '@Local' decorator can only be used with 'struct'.", 672 "type": "ERROR", 673 "code": "10905337" 674 }, 675 { 676 "message": "The '@Param' decorator can only be used with 'struct'.", 677 "type": "ERROR", 678 "code": "10905337" 679 }, 680 { 681 "message": "The '@Param' decorator can only be used with 'struct'.", 682 "type": "ERROR", 683 "code": "10905337" 684 }, 685 { 686 "message": "The '@Once' decorator can only be used with 'struct'.", 687 "type": "ERROR", 688 "code": "10905337" 689 }, 690 { 691 "message": "The '@Once' decorator can only be used with 'struct'.", 692 "type": "ERROR", 693 "code": "10905337" 694 }, 695 { 696 "message": "The '@Event' decorator can only be used with 'struct'.", 697 "type": "ERROR", 698 "code": "10905337" 699 }, 700 { 701 "message": "The '@Provider' decorator can only be used with 'struct'.", 702 "type": "ERROR", 703 "code": "10905337" 704 }, 705 { 706 "message": "The '@Consumer' decorator can only be used with 'struct'.", 707 "type": "ERROR", 708 "code": "10905337" 709 } 710 ], 711 "v2MemberDecorator": [ 712 { 713 "message": "'@Computed' can only decorate 'GetAccessor'.", 714 "type": "ERROR", 715 "code": "10905116" 716 }, 717 { 718 "message": "'@Local' can only decorate member property.", 719 "type": "ERROR", 720 "code": "10905346" 721 }, 722 { 723 "message": "'@Computed' can only decorate 'GetAccessor'.", 724 "type": "ERROR", 725 "code": "10905116" 726 }, 727 { 728 "message": "'@Monitor' can only decorate method.", 729 "type": "ERROR", 730 "code": "10905115" 731 } 732 ], 733 "param_require_once_check": [ 734 { 735 "message": "When a variable decorated with '@Param' is not assigned a default value, it must also be decorated with '@Require'.", 736 "type": "ERROR", 737 "code": "10905327" 738 }, 739 { 740 "message": "In a struct decorated with '@ComponentV2', '@Require' can only be used with '@Param' and '@BuilderParam'.", 741 "type": "ERROR", 742 "code": "10905325" 743 }, 744 { 745 "message": "In a struct decorated with '@ComponentV2', '@Require' can only be used with '@Param' and '@BuilderParam'.", 746 "type": "ERROR", 747 "code": "10905325" 748 }, 749 { 750 "message": "When a variable decorated with '@Once', it must also be decorated with '@Param'.", 751 "type": "ERROR", 752 "code": "10905326" 753 }, 754 { 755 "message": "When a variable decorated with '@Once', it must also be decorated with '@Param'.", 756 "type": "ERROR", 757 "code": "10905326" 758 } 759 ], 760 "v2DecoratorInitFromParent": [ 761 { 762 "message": "'@Require' decorated 'param_value' must be initialized through the component constructor.", 763 "type": "ERROR", 764 "code": "10905321" 765 }, 766 { 767 "message": "The 'regular' property 'regular_value' in the custom component 'testChild' cannot be initialized here (forbidden to specify).", 768 "type": "ERROR", 769 "code": "10905324" 770 }, 771 { 772 "message": "The '@Local' property 'local_value' in the custom component 'testChild' cannot be initialized here (forbidden to specify).", 773 "type": "ERROR", 774 "code": "10905324" 775 }, 776 { 777 "message": "The '@Provider' property 'provider_value' in the custom component 'testChild' cannot be initialized here (forbidden to specify).", 778 "type": "ERROR", 779 "code": "10905324" 780 }, 781 { 782 "message": "The '@Consumer' property 'consumer_value' in the custom component 'testChild' cannot be initialized here (forbidden to specify).", 783 "type": "ERROR", 784 "code": "10905324" 785 } 786 ], 787 "validateParamTwoWayBind": [ 788 { 789 "message": "When the two-way binding syntax is used, the variable 'value' must be decorated with '@Param', and the '@Event' variable '$value' must be defined in the testParamChild1.", 790 "type": "ERROR", 791 "code": "10905319" 792 }, 793 { 794 "message": "The optional character can not be used in the initial value of property 'paramValue'.", 795 "type": "ERROR", 796 "code": "10905320" 797 }, 798 { 799 "message": "The optional character can not be used in the initial value of property 'paramValue'.", 800 "type": "ERROR", 801 "code": "10905320" 802 }, 803 { 804 "message": "When the two-way binding syntax is used, the initial value of property 'paramValue' must be a variable.", 805 "type": "ERROR", 806 "code": "10905318" 807 }, 808 { 809 "message": "When the two-way binding syntax is used, the initial value of property 'paramValue' must be a variable.", 810 "type": "ERROR", 811 "code": "10905318" 812 } 813 ], 814 "validateStaticVariables": [ 815 { 816 "message": "Static property 'a1' can not be initialized through the component constructor.", 817 "type": "WARN" 818 }, 819 { 820 "message": "Static property 'b4' can not be initialized through the component constructor.", 821 "type": "WARN" 822 }, 823 { 824 "message": "Static property 'b5' can not be initialized through the component constructor.", 825 "type": "WARN" 826 }, 827 { 828 "message": "Static property 'c1' can not be initialized through the component constructor.", 829 "type": "WARN" 830 }, 831 { 832 "message": "Static property 'd4' can not be initialized through the component constructor.", 833 "type": "WARN" 834 }, 835 { 836 "message": "Static property 'd5' can not be initialized through the component constructor.", 837 "type": "WARN" 838 }, 839 { 840 "message": "The 'regular' property 'b1' in the custom component 'StaticChildTwo' cannot be initialized here (forbidden to specify).", 841 "type": "ERROR", 842 "code": "10905324" 843 }, 844 { 845 "message": "The 'regular' property 'd1' in the custom component 'StaticChildFour' cannot be initialized here (forbidden to specify).", 846 "type": "ERROR", 847 "code": "10905324" 848 } 849 ], 850 "validateDifferentMethod": [ 851 { 852 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 853 "type": "ERROR", 854 "code": "10905117" 855 }, 856 { 857 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 858 "type": "ERROR", 859 "code": "10905117" 860 }, 861 { 862 "message": "The member property or method can not be decorated by multiple built-in decorators.", 863 "type": "ERROR", 864 "code": "10905121" 865 }, 866 { 867 "message": "The member property or method can not be decorated by multiple built-in decorators.", 868 "type": "ERROR", 869 "code": "10905121" 870 }, 871 { 872 "message": "The member property or method can not be decorated by multiple built-in decorators.", 873 "type": "ERROR", 874 "code": "10905121" 875 }, 876 { 877 "message": "'@Computed' can only decorate 'GetAccessor'.", 878 "type": "ERROR", 879 "code": "10905116" 880 }, 881 { 882 "message": "The member property or method can not be decorated by multiple built-in decorators.", 883 "type": "ERROR", 884 "code": "10905121" 885 } 886 ], 887 "validateDuplicateMethod": [ 888 { 889 "message": "Duplicate '@Builder' decorators for function are not allowed.", 890 "type": "WARN" 891 }, 892 { 893 "message": "Duplicate '@CustomMethod' decorators for function are not allowed.", 894 "type": "WARN" 895 }, 896 { 897 "message": "Duplicate '@Builder' decorators for method are not allowed.", 898 "type": "WARN" 899 }, 900 { 901 "message": "Duplicate '@Styles' decorators for method are not allowed.", 902 "type": "WARN" 903 }, 904 { 905 "message": "Duplicate '@Builder' decorators for method are not allowed.", 906 "type": "WARN" 907 }, 908 { 909 "message": "Duplicate '@Styles' decorators for method are not allowed.", 910 "type": "WARN" 911 }, 912 { 913 "message": "Duplicate '@Monitor' decorators for method are not allowed.", 914 "type": "ERROR", 915 "code": "10905119" 916 }, 917 { 918 "message": "Duplicate '@Computed' decorators for method are not allowed.", 919 "type": "ERROR", 920 "code": "10905119" 921 } 922 ], 923 "validateForEachParser": { 924 "message": "The property 'props' must specify a type.", 925 "type": "ERROR", 926 "code": "10905305" 927 }, 928 "validateRepeatParser": { 929 "message": "The property 'props' must specify a type.", 930 "type": "ERROR", 931 "code": "10905328" 932 }, 933 "validateLazyForEachParser": { 934 "message": "The property 'props' must specify a type.", 935 "type": "ERROR", 936 "code": "10905305" 937 }, 938 "v2ToV1Link": [ 939 { 940 "message": "The property 'link_value' in the custom component 'V1' is missing (mandatory to specify).", 941 "type": "ERROR", 942 "code": "10905316" 943 }, 944 { 945 "message": "The property 'link_value' in the custom component 'V1' is missing (mandatory to specify).", 946 "type": "ERROR", 947 "code": "10905316" 948 }, 949 { 950 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 951 "type": "ERROR", 952 "code": "10905213" 953 }, 954 { 955 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 956 "type": "ERROR", 957 "code": "10905213" 958 }, 959 { 960 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 961 "type": "ERROR", 962 "code": "10905213" 963 }, 964 { 965 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 966 "type": "ERROR", 967 "code": "10905213" 968 } 969 ], 970 "@localBuilder": [ 971 { 972 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 973 "type": "ERROR", 974 "code": "10905117" 975 }, 976 { 977 "message": "'@LocalBuilder' can only decorate method.", 978 "type": "ERROR", 979 "code": "10905115" 980 }, 981 { 982 "message": "The member property or method can not be decorated by multiple decorators.", 983 "type": "ERROR", 984 "code": "10905125" 985 }, 986 { 987 "message": "Use the '@LocalBuilder' decorator only in the global scope or in a struct.", 988 "type": "ERROR", 989 "code": "10905114" 990 }, 991 { 992 "message": "Static methods in custom components cannot be decorated by '@LocalBuilder'.", 993 "type": "ERROR", 994 "code": "10905104" 995 } 996 ], 997 "v2Component_member_type_check": [ 998 { 999 "message": "The property 'local_value' must specify a type.", 1000 "type": "ERROR", 1001 "code": "10905328" 1002 }, 1003 { 1004 "message": "The property 'builder_value' must specify a type.", 1005 "type": "ERROR", 1006 "code": "10905328" 1007 }, 1008 { 1009 "message": "The property 'param_value' must specify a type.", 1010 "type": "ERROR", 1011 "code": "10905328" 1012 }, 1013 { 1014 "message": "The property 'param_value1' must specify a type.", 1015 "type": "ERROR", 1016 "code": "10905328" 1017 }, 1018 { 1019 "message": "The property 'param_value2' must specify a type.", 1020 "type": "ERROR", 1021 "code": "10905328" 1022 }, 1023 { 1024 "message": "The property 'param_value3' must specify a type.", 1025 "type": "ERROR", 1026 "code": "10905328" 1027 }, 1028 { 1029 "message": "The property 'event_value' must specify a type.", 1030 "type": "ERROR", 1031 "code": "10905328" 1032 }, 1033 { 1034 "message": "The property 'provide_value' must specify a type.", 1035 "type": "ERROR", 1036 "code": "10905328" 1037 }, 1038 { 1039 "message": "The property 'consumer_value' must specify a type.", 1040 "type": "ERROR", 1041 "code": "10905328" 1042 } 1043 ], 1044 "v2ToV1ComponentValidate": [ 1045 { 1046 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 1047 "type": "ERROR", 1048 "code": "10905213" 1049 }, 1050 { 1051 "message": "A V2 component cannot be used with any member property decorated by '@Link' in a V1 component.", 1052 "type": "ERROR", 1053 "code": "10905213" 1054 } 1055 ], 1056 "property_observe_validate": [ 1057 { 1058 "message": "The type of the '@State' property can not be a class decorated with '@ObservedV2'.", 1059 "type": "ERROR", 1060 "code": "10905348" 1061 }, 1062 { 1063 "message": "The type of the '@State' property can not be a class decorated with '@ObservedV2'.", 1064 "type": "ERROR", 1065 "code": "10905348" 1066 }, 1067 { 1068 "message": "The type of the '@State' property can not be a class decorated with '@ObservedV2'.", 1069 "type": "ERROR", 1070 "code": "10905348" 1071 }, 1072 { 1073 "message": "The type of the '@State' property can not be a class decorated with '@ObservedV2'.", 1074 "type": "ERROR", 1075 "code": "10905348" 1076 }, 1077 { 1078 "message": "The type of the '@State' property can not be a class decorated with '@ObservedV2'.", 1079 "type": "ERROR", 1080 "code": "10905348" 1081 }, 1082 { 1083 "message": "The type of the '@Prop' property can not be a class decorated with '@ObservedV2'.", 1084 "type": "ERROR", 1085 "code": "10905348" 1086 }, 1087 { 1088 "message": "The type of the '@Link' property can not be a class decorated with '@ObservedV2'.", 1089 "type": "ERROR", 1090 "code": "10905348" 1091 }, 1092 { 1093 "message": "The type of the '@Provide' property can not be a class decorated with '@ObservedV2'.", 1094 "type": "ERROR", 1095 "code": "10905348" 1096 }, 1097 { 1098 "message": "The type of the '@Consume' property can not be a class decorated with '@ObservedV2'.", 1099 "type": "ERROR", 1100 "code": "10905348" 1101 }, 1102 { 1103 "message": "The type of the '@StorageLink' property can not be a class decorated with '@ObservedV2'.", 1104 "type": "ERROR", 1105 "code": "10905348" 1106 }, 1107 { 1108 "message": "The type of the '@StorageProp' property can not be a class decorated with '@ObservedV2'.", 1109 "type": "ERROR", 1110 "code": "10905348" 1111 }, 1112 { 1113 "message": "The type of the '@LocalStorageLink' property can not be a class decorated with '@ObservedV2'.", 1114 "type": "ERROR", 1115 "code": "10905348" 1116 }, 1117 { 1118 "message": "The type of the '@LocalStorageProp' property can not be a class decorated with '@ObservedV2'.", 1119 "type": "ERROR", 1120 "code": "10905348" 1121 } 1122 ], 1123 "validateControllerCount": [ 1124 { 1125 "message": "A @CustomDialog component can only have one uninitialized CustomDialogController.", 1126 "type": "WARN" 1127 } 1128 ], 1129 "@ReusableV2": [ 1130 { 1131 "message": "'@ReusableV2' is only applicable to custom components decorated by '@ComponentV2'.", 1132 "type": "ERROR", 1133 "code": "10905242" 1134 }, 1135 { 1136 "message": "The '@Reusable' and '@ReusableV2' decoraotrs cannot be applied simultaneously.", 1137 "type": "ERROR", 1138 "code": "10905241" 1139 }, 1140 { 1141 "message": "The struct 'v21' can not be decorated with '@ComponentV2' and '@Component', '@Reusable', '@CustomDialog' at the same time.", 1142 "type": "ERROR", 1143 "code": "10905229" 1144 }, 1145 { 1146 "message": "The '@Reusable' and '@ReusableV2' decoraotrs cannot be applied simultaneously.", 1147 "type": "ERROR", 1148 "code": "10905241" 1149 }, 1150 { 1151 "message": "'@ReusableV2' is only applicable to custom components decorated by '@ComponentV2'.", 1152 "type": "ERROR", 1153 "code": "10905242" 1154 }, 1155 { 1156 "message": "'@ReusableV2' is only applicable to custom components decorated by '@ComponentV2'.", 1157 "type": "ERROR", 1158 "code": "10905242" 1159 }, 1160 { 1161 "message": "'@ReusableV2' is only applicable to custom components decorated by '@ComponentV2'.", 1162 "type": "ERROR", 1163 "code": "10905242" 1164 }, 1165 { 1166 "message": "'@ReusableV2' is only applicable to custom components decorated by '@ComponentV2'.", 1167 "type": "ERROR", 1168 "code": "10905242" 1169 }, 1170 { 1171 "message": "The '@ReusableV2' decorator can only be used with 'struct'.", 1172 "type": "ERROR", 1173 "code": "10905337" 1174 }, 1175 { 1176 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 1177 "type": "ERROR", 1178 "code": "10905117" 1179 }, 1180 { 1181 "message": "The '@ReusableV2' decorator can only be used with 'struct'.", 1182 "type": "ERROR", 1183 "code": "10905337" 1184 }, 1185 { 1186 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 1187 "type": "ERROR", 1188 "code": "10905117" 1189 }, 1190 { 1191 "message": "The '@ReusableV2' decorator can only be used with 'struct'.", 1192 "type": "ERROR", 1193 "code": "10905337" 1194 }, 1195 { 1196 "message": "A function can only be decorated by one of the '@AnimatableExtend', '@Builder', '@Extend', '@Styles', '@Concurrent' and '@Sendable'.", 1197 "type": "ERROR", 1198 "code": "10905117" 1199 }, 1200 { 1201 "message": "The '@ReusableV2' decorator can only be used with 'struct'.", 1202 "type": "ERROR", 1203 "code": "10905337" 1204 } 1205 ], 1206 "validateNestedReusableComponents": [ 1207 { 1208 "message": "When a custom component is decorated with '@ComponentV2' and contains a child decorated with '@Reusable', the child component will not create.", 1209 "type": "WARN" 1210 }, 1211 { 1212 "message": "When a custom component is decorated with '@ComponentV2' and contains a child decorated with '@Reusable', the child component will not create.", 1213 "type": "WARN" 1214 }, 1215 { 1216 "message": "A custom component decorated with '@Component' cannot contain child components decorated with '@ReusableV2'.", 1217 "type": "ERROR", 1218 "code": "10905244" 1219 }, 1220 { 1221 "message": "A custom component decorated with '@Component' cannot contain child components decorated with '@ReusableV2'.", 1222 "type": "ERROR", 1223 "code": "10905244" 1224 }, 1225 { 1226 "message": "A custom component decorated with '@ReusableV2' cannot contain child components decorated with '@Reusable'.", 1227 "type": "ERROR", 1228 "code": "10905246" 1229 }, 1230 { 1231 "message": "A custom component decorated with '@ReusableV2' cannot contain child components decorated with '@Reusable'.", 1232 "type": "ERROR", 1233 "code": "10905246" 1234 }, 1235 { 1236 "message": "A custom component decorated with '@Reusable' cannot contain child components decorated with '@ReusableV2'.", 1237 "type": "ERROR", 1238 "code": "10905245" 1239 }, 1240 { 1241 "message": "A custom component decorated with '@Reusable' cannot contain child components decorated with '@ReusableV2'.", 1242 "type": "ERROR", 1243 "code": "10905245" 1244 } 1245 ], 1246 "validateReusableV2InRepeat": [ 1247 { 1248 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1249 "type": "ERROR", 1250 "code": "10905247" 1251 }, 1252 { 1253 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1254 "type": "ERROR", 1255 "code": "10905247" 1256 }, 1257 { 1258 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1259 "type": "ERROR", 1260 "code": "10905247" 1261 }, 1262 { 1263 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1264 "type": "ERROR", 1265 "code": "10905247" 1266 }, 1267 { 1268 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1269 "type": "ERROR", 1270 "code": "10905247" 1271 }, 1272 { 1273 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1274 "type": "ERROR", 1275 "code": "10905247" 1276 }, 1277 { 1278 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1279 "type": "ERROR", 1280 "code": "10905247" 1281 }, 1282 { 1283 "message": "The template attribute of the Repeat component cannot contain any custom component decorated with '@ReusableV2'.", 1284 "type": "ERROR", 1285 "code": "10905247" 1286 } 1287 ], 1288 "validateReuseAndReuseId": [ 1289 { 1290 "message": "When a custom component is decorated with '@ComponentV2' and contains a child decorated with '@Reusable', the child component will not create.", 1291 "type": "WARN" 1292 }, 1293 { 1294 "message": "The reuse attribute is only applicable to custom components decorated with both '@ComponentV2' and '@ReusableV2'.", 1295 "type": "ERROR", 1296 "code": "10905248" 1297 }, 1298 { 1299 "message": "The reuse attribute is only applicable to custom components decorated with both '@ComponentV2' and '@ReusableV2'.", 1300 "type": "ERROR", 1301 "code": "10905248" 1302 }, 1303 { 1304 "message": "The reuse attribute is only applicable to custom components decorated with both '@ComponentV2' and '@ReusableV2'.", 1305 "type": "ERROR", 1306 "code": "10905248" 1307 }, 1308 { 1309 "message": "The reuseId attribute is not applicable to custom components decorated with both '@ComponentV2' and '@ReusableV2'.", 1310 "type": "ERROR", 1311 "code": "10905249" 1312 } 1313 ] 1314}