From d708b8472a05ef2dc7a0072e15c68c243cb1fdb1 Mon Sep 17 00:00:00 2001 From: wangqing Date: Wed, 8 Nov 2023 10:28:18 +0800 Subject: [PATCH] =?UTF-8?q?API=E7=BB=9F=E8=AE=A1=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E8=AF=86=E6=98=AF=E5=90=A6=E4=B8=BA?= =?UTF-8?q?=E9=AB=98=E9=98=B6API=E4=BF=A1=E6=81=AF=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqing --- build-tools/dts_parser/src/bin/config.ts | 6 +- .../src/coreImpl/parser/JsDocProcessor.ts | 5 + .../src/coreImpl/statistics/Statistics.ts | 4 +- .../dts_parser/src/typedef/parser/Comment.ts | 11 ++ .../src/typedef/statistics/ApiStatistics.ts | 21 +++ .../expect/apiStatistics/ut_class_001.json | 4 +- .../ut_constant_in_namespace_001.json | 4 +- .../ut_constant_in_namespace_002.json | 4 +- .../apiStatistics/ut_constant_in_struct.json | 98 ++++++------ .../apiStatistics/ut_constant_root_003.json | 4 +- .../apiStatistics/ut_constant_root_004.json | 4 +- .../apiStatistics/ut_constant_root_005.json | 4 +- .../apiStatistics/ut_constant_root_006.json | 4 +- .../apiStatistics/ut_constant_root_007.json | 4 +- .../ut_constructor_in_class.json | 50 +++--- .../apiStatistics/ut_decorator_argument.json | 106 +++++++------ .../apiStatistics/ut_decorator_struct.json | 54 +++---- .../apiStatistics/ut_enum_in_namespace.json | 146 +++++++++--------- .../apiStatistics/ut_enum_no_value_001.json | 12 +- .../apiStatistics/ut_enum_no_value_002.json | 12 +- .../apiStatistics/ut_enum_no_value_003.json | 12 +- .../apiStatistics/ut_enum_no_value_004.json | 12 +- .../apiStatistics/ut_enum_operation_001.json | 28 +++- .../apiStatistics/ut_enum_valuable_001.json | 12 +- .../apiStatistics/ut_enum_valuable_002.json | 12 +- .../apiStatistics/ut_enum_valuable_003.json | 12 +- .../expect/apiStatistics/ut_export_001.json | 4 +- .../expect/apiStatistics/ut_export_002.json | 4 +- .../expect/apiStatistics/ut_export_003.json | 8 +- .../expect/apiStatistics/ut_field_class.json | 8 +- .../apiStatistics/ut_field_class_static.json | 8 +- .../ut_field_class_static_return.json | 12 +- .../apiStatistics/ut_field_in_struct.json | 98 ++++++------ .../apiStatistics/ut_field_interface.json | 8 +- .../ut_field_interface_joint.json | 8 +- .../ut_field_interface_joint_readonly.json | 8 +- .../ut_field_interface_object.json | 8 +- .../ut_field_interface_object_joint.json | 8 +- .../ut_field_interface_object_readonly.json | 8 +- .../ut_field_interface_optional.json | 8 +- .../ut_field_interface_optional_joint.json | 8 +- ...eld_interface_optional_joint_readonly.json | 8 +- .../ut_field_interface_optional_readonly.json | 8 +- .../ut_field_interface_readonly.json | 8 +- .../ut_field_namespace_child_node.json | 4 +- .../ut_field_namespace_no_const.json | 4 +- .../ut_field_namespace_type_single_001.json | 4 +- .../ut_field_namespace_type_single_002.json | 4 +- .../ut_field_namespace_type_single_003.json | 4 +- .../ut_field_namespace_type_single_004.json | 4 +- .../ut_jsdoc_crossplatform_002.json | 4 +- .../ut_jsdoc_deprecated_005.json | 4 +- .../apiStatistics/ut_jsdoc_enum_006.json | 12 +- .../ut_jsdoc_famodelonly_010.json | 4 +- .../ut_jsdoc_famodelonly_011.json | 4 +- .../apiStatistics/ut_jsdoc_form_013.json | 4 +- .../apiStatistics/ut_jsdoc_interface_014.json | 4 +- .../apiStatistics/ut_jsdoc_param_016.json | 4 +- .../ut_jsdoc_permission_017.json | 4 +- .../ut_jsdoc_permission_018.json | 4 +- .../ut_jsdoc_permission_019.json | 4 +- .../apiStatistics/ut_jsdoc_readonly_020.json | 8 +- .../apiStatistics/ut_jsdoc_returns_021.json | 4 +- .../apiStatistics/ut_jsdoc_since_022.json | 4 +- .../ut_jsdoc_stagemodelonly_023.json | 4 +- .../ut_jsdoc_stagemodelonly_024.json | 4 +- .../apiStatistics/ut_jsdoc_static_025.json | 8 +- .../apiStatistics/ut_jsdoc_syscap_026.json | 4 +- .../apiStatistics/ut_jsdoc_systemapi_027.json | 8 +- .../apiStatistics/ut_jsdoc_systemapi_028.json | 8 +- .../apiStatistics/ut_jsdoc_test_029.json | 4 +- .../apiStatistics/ut_jsdoc_throws_030.json | 12 +- .../apiStatistics/ut_jsdoc_type_031.json | 8 +- .../apiStatistics/ut_jsdoc_type_032.json | 8 +- .../apiStatistics/ut_jsdoc_typedef_033.json | 12 +- .../ut_jsdoc_useinstead_034.json | 4 +- .../expect/apiStatistics/ut_method_001.json | 4 +- .../apiStatistics/ut_method_callback_001.json | 8 +- .../apiStatistics/ut_method_class_001.json | 4 +- .../apiStatistics/ut_method_class_002.json | 8 +- .../apiStatistics/ut_method_class_003.json | 8 +- .../ut_method_constructor_in_interface.json | 50 +++--- .../ut_method_in_namespace_001.json | 4 +- .../ut_method_in_namespace_002.json | 50 +++--- .../apiStatistics/ut_method_in_struct.json | 102 ++++++------ .../ut_method_interface_001.json | 4 +- .../ut_method_interface_002.json | 4 +- .../ut_method_interface_003.json | 8 +- .../ut_method_interface_004.json | 8 +- .../apiStatistics/ut_method_on_off_001.json | 12 +- .../apiStatistics/ut_method_on_off_002.json | 16 +- .../apiStatistics/ut_method_on_off_003.json | 8 +- .../apiStatistics/ut_method_on_off_004.json | 12 +- .../apiStatistics/ut_method_on_off_005.json | 8 +- .../apiStatistics/ut_method_on_off_006.json | 8 +- .../apiStatistics/ut_method_param_001.json | 4 +- .../apiStatistics/ut_method_param_002.json | 4 +- .../apiStatistics/ut_method_promise_001.json | 8 +- .../apiStatistics/ut_method_return_001.json | 4 +- .../apiStatistics/ut_method_return_002.json | 4 +- .../apiStatistics/ut_method_return_003.json | 4 +- .../ut_method_same_name_in_interface.json | 98 ++++++------ .../ut_method_same_name_in_namespace.json | 50 +++--- .../apiStatistics/ut_type_child_node_001.json | 4 +- .../apiStatistics/ut_type_child_node_002.json | 4 +- .../apiStatistics/ut_type_child_node_003.json | 4 +- .../apiStatistics/ut_type_child_node_004.json | 4 +- .../apiStatistics/ut_type_child_node_005.json | 4 +- .../apiStatistics/ut_type_child_node_006.json | 4 +- .../apiStatistics/ut_type_child_node_007.json | 4 +- .../ut_type_complex_type_001.json | 4 +- .../ut_type_complex_type_002.json | 4 +- .../ut_type_first_level_node_001.json | 4 +- .../ut_type_first_level_node_002.json | 4 +- .../ut_type_first_level_node_003.json | 4 +- .../ut_type_first_level_node_004.json | 4 +- .../ut_type_first_level_node_005.json | 4 +- .../ut_type_first_level_node_006.json | 4 +- .../ut_type_first_level_node_007.json | 4 +- 119 files changed, 1016 insertions(+), 601 deletions(-) diff --git a/build-tools/dts_parser/src/bin/config.ts b/build-tools/dts_parser/src/bin/config.ts index cc947d2db1..f1525e1008 100644 --- a/build-tools/dts_parser/src/bin/config.ts +++ b/build-tools/dts_parser/src/bin/config.ts @@ -210,7 +210,7 @@ function collectApi(options: optionObjType): toolNameValueType { return { data: options.format === 'excel' ? - ApiStatisticsHelper.getApiStatisticsInfos(allApis).apiStatisticsInfos : + ApiStatisticsHelper.getApiStatisticsInfos(allApis).apiStatisticsInfos : [fileContent], callback: collectApiCallback, }; @@ -238,11 +238,13 @@ function collectApiCallback(apiData: ApiStatisticsInfo[], sheet: ExcelJS.Workshe '起始版本', '废弃版本', 'syscap', + '错误码', '是否为系统API', '模型限制', '权限', '是否支持跨平台', '是否支持卡片应用', + '是否为高阶API', '装饰器', '文件路径', '子系统', @@ -263,11 +265,13 @@ function collectApiCallback(apiData: ApiStatisticsInfo[], sheet: ExcelJS.Workshe apiInfo.getSince() === '-1' ? '' : apiInfo.getSince(), apiInfo.getDeprecatedVersion() === '-1' ? '' : apiInfo.getDeprecatedVersion(), apiInfo.getSyscap(), + apiInfo.getErrorCodes().join() === '-1' ? '' : apiInfo.getErrorCodes().join(), apiInfo.getApiLevel(), apiInfo.getModelLimitation(), apiInfo.getPermission(), apiInfo.getIsCrossPlatForm(), apiInfo.getIsForm(), + apiInfo.getIsAutomicService(), apiInfo.getDecorators()?.join(), apiInfo.getFilePath(), subsystemMap.get(FunctionUtils.handleSyscap(apiInfo.getSyscap())), diff --git a/build-tools/dts_parser/src/coreImpl/parser/JsDocProcessor.ts b/build-tools/dts_parser/src/coreImpl/parser/JsDocProcessor.ts index 9572d021b4..1e394c4fe0 100644 --- a/build-tools/dts_parser/src/coreImpl/parser/JsDocProcessor.ts +++ b/build-tools/dts_parser/src/coreImpl/parser/JsDocProcessor.ts @@ -137,6 +137,10 @@ export class JsDocProcessorHelper { jsDocInfo.setIsSystemApi(true); } + static setIsAtomicService(jsDocInfo: Comment.JsDocInfo): void { + jsDocInfo.setIsAtomicService(true); + } + static setDeprecatedVersion(jsDocInfo: Comment.JsDocInfo, commentTag: Comment.CommentTag): void { jsDocInfo.setDeprecatedVersion(commentTag.description); } @@ -229,4 +233,5 @@ const jsDocProcessorMap: Map = new Map( [Comment.JsDocTag.PERMISSION, JsDocProcessorHelper.setPermission], [Comment.JsDocTag.THROWS, JsDocProcessorHelper.addErrorCode], [Comment.JsDocTag.CONSTANT, JsDocProcessorHelper.setIsConstant], + [Comment.JsDocTag.ATOMIC_SERVICE, JsDocProcessorHelper.setIsAtomicService], ]); diff --git a/build-tools/dts_parser/src/coreImpl/statistics/Statistics.ts b/build-tools/dts_parser/src/coreImpl/statistics/Statistics.ts index 441d0ebe28..f586929ca3 100644 --- a/build-tools/dts_parser/src/coreImpl/statistics/Statistics.ts +++ b/build-tools/dts_parser/src/coreImpl/statistics/Statistics.ts @@ -225,7 +225,9 @@ export class ApiStatisticsHelper { ) .setUseInstead(jsDocInfo.getUseinstead()) .setApiLevel(jsDocInfo.getIsSystemApi()) - .setModelLimitation(jsDocInfo.getModelLimitation()); + .setModelLimitation(jsDocInfo.getModelLimitation()) + .setIsAutomicService(jsDocInfo.getIsAtomicService()) + .setErrorCodes(jsDocInfo.getErrorCode()); } else { apiStatisticsInfo.setSyscap(ApiStatisticsHelper.extendSyscap(apiInfo)); } diff --git a/build-tools/dts_parser/src/typedef/parser/Comment.ts b/build-tools/dts_parser/src/typedef/parser/Comment.ts index 9b6909167b..d133f592e6 100644 --- a/build-tools/dts_parser/src/typedef/parser/Comment.ts +++ b/build-tools/dts_parser/src/typedef/parser/Comment.ts @@ -28,6 +28,7 @@ export namespace Comment { CONSTANT = 'constant', PERMISSION = 'permission', THROWS = 'throws', + ATOMIC_SERVICE = 'atomicservice', } export interface JsDocProcessorInterface { @@ -48,6 +49,7 @@ export namespace Comment { errorCodes: number[] = []; // @throws标签--api的错误码 typeInfo: string = ''; // @type标签--标注的类型信息 isConstant: boolean = false; // @constant标签--标注api为常量 + isAtomicService: boolean = false; //@atomicservice--标注是否为高阶API tags: CommentTag[] | undefined = undefined; constructor() {} @@ -108,6 +110,15 @@ export namespace Comment { return this.isSystemApi; } + setIsAtomicService(isAtomicService: boolean): JsDocInfo { + this.isAtomicService = isAtomicService; + return this; + } + + getIsAtomicService(): boolean { + return this.isAtomicService; + } + setModelLimitation(modelLimitation: string): JsDocInfo { this.modelLimitation = modelLimitation; return this; diff --git a/build-tools/dts_parser/src/typedef/statistics/ApiStatistics.ts b/build-tools/dts_parser/src/typedef/statistics/ApiStatistics.ts index aeb55f79e5..a2d78c9122 100644 --- a/build-tools/dts_parser/src/typedef/statistics/ApiStatistics.ts +++ b/build-tools/dts_parser/src/typedef/statistics/ApiStatistics.ts @@ -36,6 +36,8 @@ export class ApiStatisticsInfo { isForm: boolean = false; // @crossplatform标签--api是否支持跨平台 isCrossPlatForm: boolean = false; + // @atomicservice标签--是否为高阶API + isAutomicService: boolean = false; hierarchicalRelations: string = ''; apiName: string = ''; deprecatedVersion: string = ''; @@ -46,6 +48,7 @@ export class ApiStatisticsInfo { isSystemapi: boolean = false; modelLimitation: string = ''; decorators: Array | undefined = []; + errorCodes: number[] = []; setFilePath(fileFilePath: string): ApiStatisticsInfo { this.filePath = fileFilePath; this.packageName = FunctionUtils.getPackageName(fileFilePath); @@ -121,6 +124,15 @@ export class ApiStatisticsInfo { return this.isCrossPlatForm; } + setIsAutomicService(isAutomicService: boolean): ApiStatisticsInfo { + this.isAutomicService = isAutomicService; + return this; + } + + getIsAutomicService(): boolean { + return this.isAutomicService; + } + getApiType(): string { return this.apiType; } @@ -207,6 +219,15 @@ export class ApiStatisticsInfo { getDecorators(): Array | undefined { return this.decorators; } + + setErrorCodes(errorCodes: number[]): ApiStatisticsInfo { + this.errorCodes = errorCodes; + return this; + } + + getErrorCodes(): number[] { + return this.errorCodes; + } } /** diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_class_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_class_001.json index cc0cd7b4cf..609f86eef0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_class_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_class_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_class_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_001.json index f14f0c4074..1bdb6f3a8e 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_in_namespace_001.d.ts/test/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_002.json index 69204b12e7..5f790bb9f6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_namespace_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_in_namespace_002.d.ts/test/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_struct.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_struct.json index 90dde9be70..45a90c6a64 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_struct.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_in_struct.json @@ -1,48 +1,52 @@ -[ - { - "filePath": "ut_constant_in_struct.d.ets", - "packageName": "ut_constant_in_struct.d.ets", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_constant_in_struct.d.ets/MyComponent", - "apiName": "MyComponent", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Struct", - "definedText": " struct MyComponent", - "pos": { - "line": 15, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_constant_in_struct.d.ets", - "packageName": "ut_constant_in_struct.d.ets", - "parentModuleName": "MyComponent", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_constant_in_struct.d.ets/MyComponent/CONSTANT", - "apiName": "CONSTANT", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Property", - "definedText": "const CONSTANT: string;", - "pos": { - "line": 16, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_constant_in_struct.d.ets", + "packageName": "ut_constant_in_struct.d.ets", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_constant_in_struct.d.ets/MyComponent", + "apiName": "MyComponent", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Struct", + "definedText": " struct MyComponent", + "pos": { + "line": 15, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_constant_in_struct.d.ets", + "packageName": "ut_constant_in_struct.d.ets", + "parentModuleName": "MyComponent", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_constant_in_struct.d.ets/MyComponent/CONSTANT", + "apiName": "CONSTANT", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Property", + "definedText": "const CONSTANT: string;", + "pos": { + "line": 16, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_003.json index cf049d21f5..567b30bbcc 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_003.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_root_003.d.ts/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_004.json index d5469d0b9d..e7e40d0884 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_004.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_root_004.d.ts/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_005.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_005.json index 1befc4c8e3..aa6f148991 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_005.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_005.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_root_005.d.ts/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_006.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_006.json index f834d043a2..cbee5f83fd 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_006.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_006.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_root_006.d.ts/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_007.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_007.json index 397715d04b..949ef5e8f1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_007.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constant_root_007.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_constant_root_007.d.ts/CONSTANT", "apiName": "CONSTANT", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_constructor_in_class.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_constructor_in_class.json index a9968ff5d3..34f60f081b 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_constructor_in_class.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_constructor_in_class.json @@ -1,25 +1,27 @@ -[ - { - "filePath": "ut_constructor_in_class.d.ts", - "packageName": "ut_constructor_in_class", - "parentModuleName": "testNamespace", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_constructor_in_class.d.ts/testNamespace/TestInterface", - "apiName": "TestInterface", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Class", - "definedText": " class TestInterface", - "pos": { - "line": 2, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_constructor_in_class.d.ts", + "packageName": "ut_constructor_in_class", + "parentModuleName": "testNamespace", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_constructor_in_class.d.ts/testNamespace/TestInterface", + "apiName": "TestInterface", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Class", + "definedText": " class TestInterface", + "pos": { + "line": 2, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_argument.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_argument.json index 13e7c0cffa..60af440bd6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_argument.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_argument.json @@ -1,52 +1,56 @@ -[ - { - "filePath": "ut_decorator_argument.d.ets", - "packageName": "ut_decorator_argument.d.ets", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_decorator_argument.d.ets/MyComponent", - "apiName": "MyComponent", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Struct", - "definedText": " struct MyComponent", - "pos": { - "line": 15, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [ - "Component" - ] - }, - { - "filePath": "ut_decorator_argument.d.ets", - "packageName": "ut_decorator_argument.d.ets", - "parentModuleName": "MyComponent", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_decorator_argument.d.ets/MyComponent/count", - "apiName": "count", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Property", - "definedText": "@Provide('a') count: number = 0;", - "pos": { - "line": 17, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [ - "Provide" - ] - } +[ + { + "filePath": "ut_decorator_argument.d.ets", + "packageName": "ut_decorator_argument.d.ets", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_decorator_argument.d.ets/MyComponent", + "apiName": "MyComponent", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Struct", + "definedText": " struct MyComponent", + "pos": { + "line": 15, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [ + "Component" + ], + "errorCodes": [] + }, + { + "filePath": "ut_decorator_argument.d.ets", + "packageName": "ut_decorator_argument.d.ets", + "parentModuleName": "MyComponent", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_decorator_argument.d.ets/MyComponent/count", + "apiName": "count", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Property", + "definedText": "@Provide('a') count: number = 0;", + "pos": { + "line": 17, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [ + "Provide" + ], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_struct.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_struct.json index 428b303672..5874c87189 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_struct.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_decorator_struct.json @@ -1,27 +1,29 @@ -[ - { - "filePath": "ut_decorator_struct.d.ets", - "packageName": "ut_decorator_struct.d.ets", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_decorator_struct.d.ets/MyComponent", - "apiName": "MyComponent", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Struct", - "definedText": " struct MyComponent", - "pos": { - "line": 15, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [ - "Component" - ] - } +[ + { + "filePath": "ut_decorator_struct.d.ets", + "packageName": "ut_decorator_struct.d.ets", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_decorator_struct.d.ets/MyComponent", + "apiName": "MyComponent", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Struct", + "definedText": " struct MyComponent", + "pos": { + "line": 15, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [ + "Component" + ], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_in_namespace.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_in_namespace.json index 3d6666c399..066740d5eb 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_in_namespace.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_in_namespace.json @@ -1,71 +1,77 @@ -[ - { - "filePath": "ut_enum_in_namespace.d.ts", - "packageName": "ut_enum_in_namespace", - "parentModuleName": "Valuable", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_ONE", - "apiName": "VALUE_ONE", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "EnumValue", - "definedText": "VALUE_ONE", - "pos": { - "line": 3, - "character": 5 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_enum_in_namespace.d.ts", - "packageName": "ut_enum_in_namespace", - "parentModuleName": "Valuable", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_Two", - "apiName": "VALUE_Two", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "EnumValue", - "definedText": "VALUE_Two = 'testTwo'", - "pos": { - "line": 4, - "character": 5 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_enum_in_namespace.d.ts", - "packageName": "ut_enum_in_namespace", - "parentModuleName": "Valuable", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_THREE", - "apiName": "VALUE_THREE", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "EnumValue", - "definedText": "VALUE_THREE = 'testThree'", - "pos": { - "line": 5, - "character": 5 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_enum_in_namespace.d.ts", + "packageName": "ut_enum_in_namespace", + "parentModuleName": "Valuable", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_ONE", + "apiName": "VALUE_ONE", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "EnumValue", + "definedText": "VALUE_ONE", + "pos": { + "line": 3, + "character": 5 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_enum_in_namespace.d.ts", + "packageName": "ut_enum_in_namespace", + "parentModuleName": "Valuable", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_Two", + "apiName": "VALUE_Two", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "EnumValue", + "definedText": "VALUE_Two = 'testTwo'", + "pos": { + "line": 4, + "character": 5 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_enum_in_namespace.d.ts", + "packageName": "ut_enum_in_namespace", + "parentModuleName": "Valuable", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_enum_in_namespace.d.ts/Test/Valuable/VALUE_THREE", + "apiName": "VALUE_THREE", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "EnumValue", + "definedText": "VALUE_THREE = 'testThree'", + "pos": { + "line": 5, + "character": 5 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_001.json index 4eb060203d..a3a4227eb8 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_001.d.ts/NoValue/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_001.d.ts/NoValue/VALUE_TWO", "apiName": "VALUE_TWO", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_001.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_001.d.ts/NoValue/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_002.json index 9b2cfa2193..4f74a007ba 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_002.d.ts/NoValue/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_002.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_002.d.ts/NoValue/VALUE_TWO", "apiName": "VALUE_TWO", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_002.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_002.d.ts/NoValue/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_003.json index d8d4a9c5b4..6bef31b65c 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_003.d.ts/NoValue/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_003.d.ts/NoValue/VALUE_TWO", "apiName": "VALUE_TWO", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_003.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_003.d.ts/NoValue/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_004.json index 46e84680f1..d8e1b02176 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_no_value_004.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_004.d.ts/NoValue/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_004.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_004.d.ts/NoValue/VALUE_TWO", "apiName": "VALUE_TWO", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_no_value_004.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_no_value_004.d.ts/NoValue/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_operation_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_operation_001.json index 14d3f21d8d..28a567e8f2 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_operation_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_operation_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_Two", "apiName": "VALUE_Two", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,7 +71,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -77,6 +83,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_FOUR", "apiName": "VALUE_FOUR", "deprecatedVersion": "", @@ -89,7 +96,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -100,6 +108,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_FIVE", "apiName": "VALUE_FIVE", "deprecatedVersion": "", @@ -112,7 +121,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -123,6 +133,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_SIX", "apiName": "VALUE_SIX", "deprecatedVersion": "", @@ -135,7 +146,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_operation_001.d.ts", @@ -146,6 +158,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_operation_001.d.ts/Operation/VALUE_SEVEN", "apiName": "VALUE_SEVEN", "deprecatedVersion": "", @@ -158,6 +171,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_001.json index e3a433a180..b42bb16f73 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_001.d.ts/Valuable/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_001.d.ts/Valuable/VALUE_Two", "apiName": "VALUE_Two", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_001.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_001.d.ts/Valuable/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_002.json index 216dbc901b..ca0582e30c 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_002.d.ts/Valuable/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_002.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_002.d.ts/Valuable/VALUE_Two", "apiName": "VALUE_Two", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_002.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_002.d.ts/Valuable/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_003.json index 209ea6a3b7..3d48bda003 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_enum_valuable_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_003.d.ts/Valuable/VALUE_ONE", "apiName": "VALUE_ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_003.d.ts/Valuable/VALUE_Two", "apiName": "VALUE_Two", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_enum_valuable_003.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_enum_valuable_003.d.ts/Valuable/VALUE_THREE", "apiName": "VALUE_THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_001.json index 7a6ebc3f36..7b4b3188d5 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_export_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_002.json index d2a5b9c068..169036294d 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_002.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_export_002.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_003.json index 5082c7e8bb..1cdced5a38 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_export_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_export_003.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_export_003.d.ts/getUserName", "apiName": "getUserName", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_export_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_export_003.d.ts/setName", "apiName": "setName", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class.json index ab9bebb9dd..5f2a727aff 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_class.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class.d.ts/testNamespace/TestInterface/id", "apiName": "id", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static.json index 84ea30521d..c3cbb5efa4 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class_static.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_class_static.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class_static.d.ts/testNamespace/TestInterface/id", "apiName": "id", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static_return.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static_return.json index 47d94dae58..af12b7b0b1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static_return.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_class_static_return.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class_static_return.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_class_static_return.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class_static_return.d.ts/testNamespace/TestInterface/registerInputer", "apiName": "registerInputer", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_class_static_return.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_class_static_return.d.ts/testNamespace/isOpenAccessibility", "apiName": "isOpenAccessibility", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_in_struct.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_in_struct.json index e1d0bdad19..86059de01d 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_in_struct.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_in_struct.json @@ -1,48 +1,52 @@ -[ - { - "filePath": "ut_field_in_struct.d.ets", - "packageName": "ut_field_in_struct.d.ets", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_field_in_struct.d.ets/MyComponent", - "apiName": "MyComponent", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Struct", - "definedText": " struct MyComponent", - "pos": { - "line": 15, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_field_in_struct.d.ets", - "packageName": "ut_field_in_struct.d.ets", - "parentModuleName": "MyComponent", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_field_in_struct.d.ets/MyComponent/windowUpdateType", - "apiName": "windowUpdateType", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Property", - "definedText": "readonly windowUpdateType?: WindowUpdateType;", - "pos": { - "line": 16, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_field_in_struct.d.ets", + "packageName": "ut_field_in_struct.d.ets", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_field_in_struct.d.ets/MyComponent", + "apiName": "MyComponent", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Struct", + "definedText": " struct MyComponent", + "pos": { + "line": 15, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_field_in_struct.d.ets", + "packageName": "ut_field_in_struct.d.ets", + "parentModuleName": "MyComponent", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_field_in_struct.d.ets/MyComponent/windowUpdateType", + "apiName": "windowUpdateType", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Property", + "definedText": "readonly windowUpdateType?: WindowUpdateType;", + "pos": { + "line": 16, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface.json index 1db52ed31e..ee9c33c6a8 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface.d.ts/testNamespace/TestInterface/id", "apiName": "id", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint.json index afa3133cf3..54837f1d3a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_joint.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_joint.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_joint.d.ts/testNamespace/TestInterface/type", "apiName": "type", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint_readonly.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint_readonly.json index be9a5b15c1..08b111ce51 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint_readonly.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_joint_readonly.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_joint_readonly.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_joint_readonly.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_joint_readonly.d.ts/testNamespace/TestInterface/type", "apiName": "type", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object.json index b18171bdfb..25facbfe1a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_object.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object.d.ts/testNamespace/TestInterface/options", "apiName": "options", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_joint.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_joint.json index 7c27ff76c4..1f8e95daa8 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_joint.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_joint.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object_joint.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_object_joint.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object_joint.d.ts/testNamespace/TestInterface/options", "apiName": "options", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_readonly.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_readonly.json index f95bc23105..5cbb59c842 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_readonly.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_object_readonly.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object_readonly.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_object_readonly.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_object_readonly.d.ts/testNamespace/TestInterface/options", "apiName": "options", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional.json index 97a6630f04..e633c29473 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_optional.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional.d.ts/testNamespace/TestInterface/windowUpdateType", "apiName": "windowUpdateType", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint.json index c4d8d62434..5525da62f6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_joint.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_optional_joint.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_joint.d.ts/testNamespace/TestInterface/windowUpdateType", "apiName": "windowUpdateType", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint_readonly.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint_readonly.json index 265f8ab75a..c74054eafc 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint_readonly.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_joint_readonly.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_joint_readonly.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_optional_joint_readonly.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_joint_readonly.d.ts/testNamespace/TestInterface/windowUpdateType", "apiName": "windowUpdateType", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_readonly.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_readonly.json index d9fa633fb5..0092b11448 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_readonly.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_optional_readonly.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_readonly.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_optional_readonly.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_optional_readonly.d.ts/testNamespace/TestInterface/windowUpdateType", "apiName": "windowUpdateType", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_readonly.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_readonly.json index a8791d3ea2..9f16aa0a73 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_readonly.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_interface_readonly.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_readonly.d.ts/testNamespace/TestInterface", "apiName": "TestInterface", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_field_interface_readonly.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_interface_readonly.d.ts/testNamespace/TestInterface/id", "apiName": "id", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_child_node.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_child_node.json index 9b9687934d..da026d08b1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_child_node.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_child_node.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_child_node.d.ts/testNamespace/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_no_const.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_no_const.json index 137f777bea..111cd4c0e9 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_no_const.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_no_const.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_no_const.d.ts/testNamespace/batterySOC", "apiName": "batterySOC", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_001.json index 5417ef9a3a..54afb508ba 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_type_single_001.d.ts/testNamespace/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_002.json index 4d2bd6f384..44b8f07484 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_type_single_002.d.ts/testNamespace/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_003.json index 6ae1d85734..166dbda11e 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_type_single_003.d.ts/testNamespace/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_004.json index a65edf3270..357f2abe9a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_field_namespace_type_single_004.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_field_namespace_type_single_004.d.ts/testNamespace/SimState", "apiName": "SimState", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_crossplatform_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_crossplatform_002.json index 5e7d03472d..5291181120 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_crossplatform_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_crossplatform_002.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": true, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_crossplatform_002.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_deprecated_005.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_deprecated_005.json index 365520c008..1389846fc6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_deprecated_005.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_deprecated_005.json @@ -8,6 +8,7 @@ "since": "7", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_deprecated_005.d.ts/test", "apiName": "test", "deprecatedVersion": "9", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_enum_006.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_enum_006.json index f3e74f3902..4ee6933169 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_enum_006.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_enum_006.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_enum_006.d.ts/test/ONE", "apiName": "ONE", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_enum_006.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_enum_006.d.ts/test/TWO", "apiName": "TWO", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_enum_006.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_enum_006.d.ts/test/THREE", "apiName": "THREE", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_010.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_010.json index 9c3aebae0e..e7f71c612a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_010.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_010.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_famodelonly_010.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "famodelonly", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_011.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_011.json index 2b500d6b37..b9c856fac1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_011.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_famodelonly_011.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_famodelonly_011.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "FAModelOnly", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_form_013.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_form_013.json index 156ff37030..0a15283aa3 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_form_013.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_form_013.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": true, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_form_013.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_interface_014.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_interface_014.json index 4023644032..02b0ff816e 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_interface_014.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_interface_014.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_interface_014.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_param_016.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_param_016.json index 78a5caf202..f14a0f1e9e 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_param_016.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_param_016.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_param_016.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_017.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_017.json index 2d43a2fff5..bd2144ba41 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_017.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_017.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_permission_017.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_018.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_018.json index afa2008e39..173c5d78ad 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_018.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_018.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_permission_018.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_019.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_019.json index f6e78afb30..d254854d3b 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_019.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_permission_019.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_permission_019.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_readonly_020.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_readonly_020.json index c9c89b3e72..33bc73c62c 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_readonly_020.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_readonly_020.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_readonly_020.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_readonly_020.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_readonly_020.d.ts/Test/str", "apiName": "str", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_returns_021.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_returns_021.json index 14e671b11c..6a7971a840 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_returns_021.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_returns_021.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_returns_021.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_since_022.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_since_022.json index 8ad202a7d5..7397ec8caa 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_since_022.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_since_022.json @@ -8,6 +8,7 @@ "since": "7", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_since_022.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_023.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_023.json index fa7f06e7d9..53514a80bd 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_023.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_023.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_stagemodelonly_023.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "stagemodelonly", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_024.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_024.json index 47808e46df..0c3924250b 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_024.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_stagemodelonly_024.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_stagemodelonly_024.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "StageModelOnly", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_static_025.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_static_025.json index 13df1e4821..fd9c9239a5 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_static_025.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_static_025.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_static_025.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_static_025.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_static_025.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_syscap_026.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_syscap_026.json index c158262855..39e804bacb 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_syscap_026.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_syscap_026.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_syscap_026.d.ts/test", "apiName": "test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_027.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_027.json index 117e9946ba..b4a35bf8b0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_027.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_027.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_systemapi_027.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_systemapi_027.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_systemapi_027.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": true, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_028.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_028.json index b3de731319..08f7c8860c 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_028.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_systemapi_028.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_systemapi_028.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": true, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_systemapi_028.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_systemapi_028.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_test_029.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_test_029.json index e83baac9d1..87c7540ec6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_test_029.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_test_029.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_test_029.d.ts/test/testStr", "apiName": "testStr", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_throws_030.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_throws_030.json index cc99ea9735..b58e8fa8ab 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_throws_030.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_throws_030.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_throws_030.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_throws_030.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_throws_030.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,11 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [ + 201, + 202, + 401 + ] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_031.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_031.json index c2f7e2acb4..576d907e68 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_031.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_031.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_type_031.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_type_031.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_type_031.d.ts/Test/str", "apiName": "str", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_032.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_032.json index 7c016c376e..08abeb544f 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_032.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_type_032.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_type_032.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_type_032.d.ts", @@ -31,6 +33,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_type_032.d.ts/Test/str", "apiName": "str", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_typedef_033.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_typedef_033.json index 12a69e8da0..800e76ebb3 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_typedef_033.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_typedef_033.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_typedef_033.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_typedef_033.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_typedef_033.d.ts/Test/key", "apiName": "key", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_jsdoc_typedef_033.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_typedef_033.d.ts/Test/value", "apiName": "value", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_useinstead_034.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_useinstead_034.json index 398280c95d..293505ff04 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_useinstead_034.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_jsdoc_useinstead_034.json @@ -8,6 +8,7 @@ "since": "7", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_jsdoc_useinstead_034.d.ts/test", "apiName": "test", "deprecatedVersion": "9", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_001.json index cb89799606..fcc5efcaf5 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_001.d.ts/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_callback_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_callback_001.json index 13352c198d..4723f59895 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_callback_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_callback_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_callback_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_callback_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_callback_001.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_001.json index c5891c8e4d..da2e3c612b 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_class_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_002.json index 61c4e7c320..88c0cae8e0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_002.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_class_002.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_class_002.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_class_002.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_003.json index 9af40e6a7f..7a566ef435 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_class_003.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_class_003.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_class_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_class_003.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_constructor_in_interface.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_constructor_in_interface.json index bb3b243d85..74144442c2 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_constructor_in_interface.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_constructor_in_interface.json @@ -1,25 +1,27 @@ -[ - { - "filePath": "ut_method_constructor_in_interface.d.ts", - "packageName": "ut_method_constructor_in_interface", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "-1", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_constructor_in_interface.d.ts/Test", - "apiName": "Test", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Interface", - "definedText": " export interface Test", - "pos": { - "line": 5, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_method_constructor_in_interface.d.ts", + "packageName": "ut_method_constructor_in_interface", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "-1", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_constructor_in_interface.d.ts/Test", + "apiName": "Test", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Interface", + "definedText": " export interface Test", + "pos": { + "line": 5, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_001.json index 632970a11f..16f0bfba45 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_in_namespace_001.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_002.json index 340bb9bfda..0e482bbb74 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_namespace_002.json @@ -1,25 +1,27 @@ -[ - { - "filePath": "ut_method_in_namespace_002.d.ts", - "packageName": "ut_method_in_namespace_002", - "parentModuleName": "test", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_in_namespace_002.d.ts/test/func", - "apiName": "func", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Method", - "definedText": "function func(): void {}", - "pos": { - "line": 3, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_method_in_namespace_002.d.ts", + "packageName": "ut_method_in_namespace_002", + "parentModuleName": "test", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_in_namespace_002.d.ts/test/func", + "apiName": "func", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Method", + "definedText": "function func(): void {}", + "pos": { + "line": 3, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_struct.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_struct.json index 494a5c1760..b1d0d2fca1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_struct.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_in_struct.json @@ -1,50 +1,54 @@ -[ - { - "filePath": "ut_method_in_struct.d.ets", - "packageName": "ut_method_in_struct.d.ets", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_in_struct.d.ets/MyComponent", - "apiName": "MyComponent", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Struct", - "definedText": " struct MyComponent", - "pos": { - "line": 15, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_method_in_struct.d.ets", - "packageName": "ut_method_in_struct.d.ets", - "parentModuleName": "MyComponent", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_in_struct.d.ets/MyComponent/aBuilder1", - "apiName": "aBuilder1", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Property", - "definedText": "@BuilderParam aBuilder1: () => void = GlobalBuilder0;", - "pos": { - "line": 16, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [ - "BuilderParam" - ] - } +[ + { + "filePath": "ut_method_in_struct.d.ets", + "packageName": "ut_method_in_struct.d.ets", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_in_struct.d.ets/MyComponent", + "apiName": "MyComponent", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Struct", + "definedText": " struct MyComponent", + "pos": { + "line": 15, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_method_in_struct.d.ets", + "packageName": "ut_method_in_struct.d.ets", + "parentModuleName": "MyComponent", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_in_struct.d.ets/MyComponent/aBuilder1", + "apiName": "aBuilder1", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Property", + "definedText": "@BuilderParam aBuilder1: () => void = GlobalBuilder0;", + "pos": { + "line": 16, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [ + "BuilderParam" + ], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_001.json index c5b8281878..a1dc3e55ec 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_002.json index 71943ec281..06d6495bd2 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_002.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_002.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_003.json index acbd9e5a06..11f15458da 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_003.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_003.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_interface_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_003.d.ts/Test/onRequestRedirected", "apiName": "onRequestRedirected", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_004.json index 13de63e19c..2d36ef743d 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_interface_004.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_004.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_interface_004.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_interface_004.d.ts/Test/onRequestRedirected", "apiName": "onRequestRedirected", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_001.json index 7e4926bd9e..1d586e6ba9 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_001.d.ts/Test/on_add", "apiName": "on_add", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_001.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_001.d.ts/Test/on_reduce", "apiName": "on_reduce", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_002.json index 042ff20bc5..211d4a0a88 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_002.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_002.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_002.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_002.d.ts/Test/on_add", "apiName": "on_add", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_002.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_002.d.ts/Test/on_remove", "apiName": "on_remove", "deprecatedVersion": "", @@ -66,7 +71,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_002.d.ts", @@ -77,6 +83,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_002.d.ts/Test/on_change", "apiName": "on_change", "deprecatedVersion": "", @@ -89,6 +96,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_003.json index 2ae45f7855..0aafeb6b36 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_003.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_003.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_003.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_003.d.ts/Test/on", "apiName": "on", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_004.json index a89206d905..5c8d1bf2fb 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_004.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_004.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_004.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_004.d.ts/Test/on", "apiName": "on", "deprecatedVersion": "", @@ -43,7 +46,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_004.d.ts", @@ -54,6 +58,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_004.d.ts/ChangeEvent", "apiName": "ChangeEvent", "deprecatedVersion": "", @@ -66,6 +71,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_005.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_005.json index 812abe75bc..9ef6c62189 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_005.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_005.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_005.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_005.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_005.d.ts/Test/on", "apiName": "on", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_006.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_006.json index 07e5bfba11..bc725646dd 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_006.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_on_off_006.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_006.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_on_off_006.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_on_off_006.d.ts/Test/on", "apiName": "on", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_001.json index e306a86027..941fcd40f0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_param_001.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_002.json index cae9d99eab..cb361f3bbb 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_param_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_param_002.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_promise_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_promise_001.json index f0a14d663f..ff4fb8d6b8 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_promise_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_promise_001.json @@ -8,6 +8,7 @@ "since": "-1", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_promise_001.d.ts/Test", "apiName": "Test", "deprecatedVersion": "", @@ -20,7 +21,8 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] }, { "filePath": "ut_method_promise_001.d.ts", @@ -31,6 +33,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_promise_001.d.ts/Test/func", "apiName": "func", "deprecatedVersion": "", @@ -43,6 +46,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_001.json index 705a3b48be..e46fc794bf 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_return_001.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_002.json index 1f57758551..f6a19a49b0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_return_002.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_003.json index b839298656..26b01c2562 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_return_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_method_return_003.d.ts/test/func", "apiName": "func", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_interface.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_interface.json index ec982a8483..59e36cfdef 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_interface.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_interface.json @@ -1,48 +1,52 @@ -[ - { - "filePath": "ut_method_same_name_in_interface.d.ts", - "packageName": "ut_method_same_name_in_interface", - "parentModuleName": "global", - "syscap": "", - "permissions": "", - "since": "-1", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_same_name_in_interface.d.ts/Test", - "apiName": "Test", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Interface", - "definedText": " export interface Test", - "pos": { - "line": 5, - "character": 1 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - }, - { - "filePath": "ut_method_same_name_in_interface.d.ts", - "packageName": "ut_method_same_name_in_interface", - "parentModuleName": "Test", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_same_name_in_interface.d.ts/Test/func", - "apiName": "func", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Method", - "definedText": "func(str: string, str2: string): void;\nfunc(str: string): void;", - "pos": { - "line": 6, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_method_same_name_in_interface.d.ts", + "packageName": "ut_method_same_name_in_interface", + "parentModuleName": "global", + "syscap": "", + "permissions": "", + "since": "-1", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_same_name_in_interface.d.ts/Test", + "apiName": "Test", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Interface", + "definedText": " export interface Test", + "pos": { + "line": 5, + "character": 1 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + }, + { + "filePath": "ut_method_same_name_in_interface.d.ts", + "packageName": "ut_method_same_name_in_interface", + "parentModuleName": "Test", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_same_name_in_interface.d.ts/Test/func", + "apiName": "func", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Method", + "definedText": "func(str: string, str2: string): void;\nfunc(str: string): void;", + "pos": { + "line": 6, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_namespace.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_namespace.json index 14b4ec26aa..0271412f43 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_namespace.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_method_same_name_in_namespace.json @@ -1,25 +1,27 @@ -[ - { - "filePath": "ut_method_same_name_in_namespace.d.ts", - "packageName": "ut_method_same_name_in_namespace", - "parentModuleName": "test", - "syscap": "", - "permissions": "", - "since": "", - "isForm": false, - "isCrossPlatForm": false, - "hierarchicalRelations": "ut_method_same_name_in_namespace.d.ts/test/func", - "apiName": "func", - "deprecatedVersion": "", - "useInstead": "", - "apiType": "Method", - "definedText": "function func(str: string, str2: string);\nfunction func(str: string);", - "pos": { - "line": 6, - "character": 3 - }, - "isSystemapi": false, - "modelLimitation": "", - "decorators": [] - } +[ + { + "filePath": "ut_method_same_name_in_namespace.d.ts", + "packageName": "ut_method_same_name_in_namespace", + "parentModuleName": "test", + "syscap": "", + "permissions": "", + "since": "", + "isForm": false, + "isCrossPlatForm": false, + "isAutomicService": false, + "hierarchicalRelations": "ut_method_same_name_in_namespace.d.ts/test/func", + "apiName": "func", + "deprecatedVersion": "", + "useInstead": "", + "apiType": "Method", + "definedText": "function func(str: string, str2: string);\nfunction func(str: string);", + "pos": { + "line": 6, + "character": 3 + }, + "isSystemapi": false, + "modelLimitation": "", + "decorators": [], + "errorCodes": [] + } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_001.json index 143bc70f62..e09fe3e1f7 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_001.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_002.json index 208a04618f..1b41958197 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_002.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_003.json index 62740d2f19..69c50ab41a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_003.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_004.json index 63c1ba1ede..34cf9cf8c0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_004.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_004.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_005.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_005.json index 819e10018e..69f6778412 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_005.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_005.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_005.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_006.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_006.json index 7d23ca466d..8ad5bd5769 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_006.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_006.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_006.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_007.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_007.json index aa6a1bf5fa..788947c25d 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_007.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_child_node_007.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_child_node_007.d.ts/test/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_001.json index e513703e08..278d8011e9 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_complex_type_001.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_002.json index ab6f8ef74e..782c8ea4c1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_complex_type_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_complex_type_002.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_001.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_001.json index 5ed4638213..8e8ae8f2b0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_001.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_001.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_001.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_002.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_002.json index b6d12bcd1b..c8fdeeff1a 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_002.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_002.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_002.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_003.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_003.json index 00896ea3fc..46dd8ba8d1 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_003.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_003.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_003.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_004.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_004.json index f7d8817683..5f29efe3c0 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_004.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_004.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_004.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_005.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_005.json index 9bc148f5b0..59486395b6 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_005.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_005.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_005.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_006.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_006.json index 61c7cf1c20..cc9a67edf4 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_006.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_006.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_006.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file diff --git a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_007.json b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_007.json index 98550747ac..518ebaffb3 100644 --- a/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_007.json +++ b/build-tools/dts_parser/test/expect/apiStatistics/ut_type_first_level_node_007.json @@ -8,6 +8,7 @@ "since": "", "isForm": false, "isCrossPlatForm": false, + "isAutomicService": false, "hierarchicalRelations": "ut_type_first_level_node_007.d.ts/TextOneType", "apiName": "TextOneType", "deprecatedVersion": "", @@ -20,6 +21,7 @@ }, "isSystemapi": false, "modelLimitation": "", - "decorators": [] + "decorators": [], + "errorCodes": [] } ] \ No newline at end of file -- Gitee