Merged
Add Retention annotation #31349
Add Retention annotation #31349
Merged
huyunhui1Add on Mar 16
huyunhui1
huyunhui1
Mar 16

相关的Issue

https://gitcode.com/openharmony/third_party_typescript/issues/758

原因(目的、解决的问题等)

实现源码态注解

描述(做了什么,变更了什么)

新增API Retention, RetentionPolicy, 开发者提供这些API可实现自定义源码态注解,源码态注解不会影响编译产物且能应用于各类声明语句

示例:

import {Retention, RetentionPolicy} from "@kit.ArkTS"

@Retention({policy: RetentionPolicy.SOURCE})
@interface sourceAnnotation {
     field: number
}

@sourceAnnotation({field: 1})
let a = 1

自检结果(结果截图添加到下面)

兼容性影响评估,如有影响请写明(N)

新增API,不涉及兼容性

  • [NA] 不兼容

L0新增用例自检结果

API参考文档影响评估(提供docs仓pr链接)

likedislike
Pull Request has been successfully merged by openharmony_ci.
(Thank you for huyunhui1's contribution.)
huyunhui1huyunhui1
Mar 16 Associated issue: Support Retention Annotation
openharmony_ciopenharmony_ciCollaborators
Mar 16 Added label: waiting_on_author
openharmony_ci
openharmony_ciCollaborators
Mar 16 Comments:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接。


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ciCollaborators
Mar 16 Added label: dco检查成功
openharmony_ci
openharmony_ciCollaborators
Mar 16 Comments:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【dayu200测试, dayu200_xts_static编译, ohos-sdk编译, dayu200_xts编译, dayu200编译, part_compile测试, 格式化检查, mac-sdk_feature编译, mac-sdk编译, hap_build编译, part_compile编译, dayu200_xts_acts编译, master_inner_build编译, dayu200-codearts编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/69b7c59b64650f998bc46ae3/runlist

likedislike
82 messages are collapsed here。 See more
openharmony_ci
openharmony_ciCollaborators
Mar 20 Comments:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/69bd129f64650f998b63c79d/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 ohos-sdk success NA >>>
2 dayu200 success success >>>
3 dayu200_xts success NA >>>
4 hap_build success NA >>>
5 part_compile success success(IGNORE) >>>
6 format_check success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build success(IGNORE) NA >>>
10 dayu200-codearts failed(IGNORE)(skip build) NA >>>
11 mac-sdk success NA >>>
12 mac-sdk_feature success(IGNORE) NA >>>

likedislike
openharmony_ci
openharmony_ciCollaborators
Mar 20 Comments:

您好,Committer @xiadengping20241118 ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @xiadengping20241118 . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
openharmony_ciopenharmony_ciCollaborators
Mar 20 Merged pull request, merge node SHA: 93886074ce9dab3e2750d86fe1359621535c3886
openharmony_ciopenharmony_ciCollaborators
Mar 20 Removed label: waiting_for_review
openharmony_ciopenharmony_ciCollaborators
Mar 20 Added label: merged