161 Commits

Author SHA1 Message Date
ElevenDuan c9ae39d1e1 Propagate THROW_ERROR to type parsers
Add bool throwError to ParseTsTypeLiteralOrTsMappedType,
ParseTsTupleType, ParseTsTupleElement, and ParseTsMappedType
so speculative parsing contexts can gracefully return nullptr
instead of unconditionally throwing.

Co-Authored-By: Agent
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9709
Change-Id: Ib6114ee54844df8a8b2aa5f9210baa8f840b5693
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
2026-04-14 19:21:30 +08:00
ElevenDuan c4b4381ee3 Fix type operator keyword parsing in expressions
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/9675

Co-Authored-By: Agent
Change-Id: I13993cd7644e0df31cfb17e920224a6fda555805
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
2026-04-09 14:17:49 +08:00
ElevenDuan b3bf15c217 Fix code check
Issue: https://gitcode.com/openharmony/arkcompiler_runtime_core/issues/8741
Change-Id: I0e9fc71fb8048d55769724e7169972240595e716
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
2026-01-06 18:26:34 +08:00
ElevenDuan d053add823 Stack Overflow Protection
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8380
Change-Id: Ic8c7df2e8f467b255b0f6d2bca5e81386cfb80b4
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
2025-12-05 21:48:12 +08:00
liyue 36efbee9c4 Fix the issue where the enum line number is zero
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/8001
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: Iab06d76d52e893ff21259ce700453429537166cf
2025-10-24 11:34:53 +08:00
ElevenDuan 49fb2a4bfe Fix code check
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/7800
Change-Id: Ic47c579110a2adaad26d481c859aea7d95da6732
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
2025-09-28 16:59:38 +08:00
liyue 7fabb48f43 Adjusting line numbers for implicit constructor
Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/7717
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I462eb6b76139b05ccf74097a652a295f6f0c0de2
2025-09-23 12:14:53 +08:00
zmw f0a1c87619 Fix annotation version control
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICR2HZ
Description: Fix annotation version control

Signed-off-by: zmw <zhongmingwei2@huawei.com>
Change-Id: Iccb1f4db82c137204f2272407baafb3d312d708c
2025-08-04 21:40:06 +08:00
tengtengh eb3c073700 merge 0603 into master
Signed-off-by: tengtengh <tenghao9@huawei.com>
2025-07-17 10:24:43 +08:00
tengtengh 783972918f Merge 0603 into master
Issue: [新需求]: merge 0603 into master
https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICJ0TK

Merge remote-tracking branch 'origin/OpenHarmony_feature_release_20250603'

Signed-off-by: tengtengh <tenghao9@huawei.com>
2025-07-02 20:54:34 +08:00
zhongmingwei e89da4ece5 Es2abc support static interface
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICAOLR
Description: es2abc support static interface
Change-Id: I1157db3b20125a270f05c08ba45adaa08f775f35
Signed-off-by: zhongmingwei <zhongmingwei2@huawei.com>
2025-05-26 23:24:36 +08:00
zhongmingwei 4e218ef19d Annotations bugfix
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IC78O9
Description: fix some annotaton bug

Signed-off-by: zhongmingwei <zhongmingwei2@huawei.com>
Change-Id: Ib44a4d045f1efd075f82c6d06077037cb3f16c5c
2025-05-13 10:05:12 +08:00
liyue f79eb2fe91 Fix record not found issue between SDK versions
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IC2VVC
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I0b75dd84291c18339f624b06fb69842f8e7f9cde
2025-04-22 02:47:12 +08:00
openharmony_ci 74699710c7 !4738 Fix syntax error with readonly as optional param
Merge pull request !4738 from LiYue/0323-interface-readonly
2025-04-02 21:39:12 +00:00
openharmony_ci b42ff3abb4 !4289 Fix syntax errors in complex function parameters
Merge pull request !4289 from LiYue/0224_colon_function_parameter
2025-04-01 20:32:54 +00:00
liyue 4662394637 Fix syntax error with readonly as optional param
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBVLPU
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I652a9ba97f576a9e87d9393c41759b9072712f85
2025-03-23 22:57:29 +08:00
liyue 16670af0df Fix syntax errors in complex function parameters
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBP2L2
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I5fb8c8115ac441dd3a666db2fb7daee56977bb5a
2025-03-17 17:02:03 +08:00
ElevenDuan 708ae5dc6b Fix literal value as propName after decorator
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBQZ29?from=project-issue
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
Change-Id: I8af280c72cb59ffb214fa2ae76b3a38bdacea07b
2025-03-07 20:24:12 +08:00
liyue 2d7d40baa9 Fix null pointer dereference in UTF-16 encoding
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBJ3TU
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I6daef235992d749ef2a7e54329fb102f50940aa8
2025-03-03 23:18:56 +08:00
liyue 4aa1f92dcc Frontend redundant header file cleanup
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBGBMZ
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I8011d216b2bafb83bf48d4d19c2342a913f4e708
2025-01-08 16:58:34 +08:00
shixiaowei4 f682e3f3dd Add source language
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IB0TXS

Signed-off-by: shixiaowei4 <shixiaowei4@huawei.com>
Change-Id: I8564e7fb969668eb16506ed405e12a70238418b9
2024-12-25 09:34:46 +08:00
Ilya Trubachev 4c82b2efb6 Change annotation prefix
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IAYP81

Change-Id: I167fc18343e098e85c62bceca97131c120b72af2
Signed-off-by: Nazarov Konstantin <nazarov.konstantin1@huawei.com>
2024-12-20 19:13:54 +08:00
openharmony_ci c37f08acbf !3585 Add statistics property for inline property
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBBN9K
Change-Id: I85822011d3257e0f69036625c4cbbda717b25ef7
Signed-off-by: liyue <liyue210@huawei.com>
2024-12-18 16:46:34 +08:00
openharmony_ci 7724d0435b !3073 Fix enum Template type not supported
Merge pull request !3073 from oh-rgx/enum
2024-09-26 11:21:56 +00:00
renguangxuan 177017f3c0 Fix enum Template type not supported
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IAOTG7

Signed-off-by: renguangxuan <renguangxuan@huawei.com>
Change-Id: I9148bd9711b449d3e1da04c331b11e0895768fe3
2024-09-24 11:02:03 +08:00
Ilya Trubachev 227add83cc Annotations support
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IA5B6R

Signed-off-by: Ilya Trubachev <trubachev.ilya@huawei-partners.com>
Change-Id: Idf257cab90453957ca01d65af00887f545bfd81f
2024-09-11 13:41:47 +03:00
huyunhui1 e2a2821c09 Fix es2abc_gen_abc template
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IANX9Y

Signed-off-by: huyunhui1 <huyunhui1@huawei.com>
Change-Id: Id879a3f481a9ef3efdd29fc9309042087c7c06f0
2024-09-05 20:13:22 +08:00
huyunhui1 2f9bbe664f Fix sendable class
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IANF6U

Signed-off-by: huyunhui1 <huyunhui1@huawei.com>
Change-Id: Ifc8580f23bdfc3a65f3ea5ddbcd5977dadf8b4ef
2024-08-29 17:01:16 +08:00
openharmony_ci 6f09bf182c !2898 Fix unused Todo tags
Merge pull request !2898 from Principe/master
2024-08-26 22:47:24 +00:00
Principe 9b4a1a67aa Fix unused Todo tags
Issue: IAK6U5

Signed-off-by: Principe <zhouyuanzhu@h-partners.com>
Change-Id: I7712c7232d5a0b6611a61767cd916e2f246fe815

Fix unused Todo tags

Issue: IAK6U5

Signed-off-by: Principe <zhouyuanzhu@h-partners.com>
Change-Id: I4df57860e165d0dff52da02cd436707d817e2658
2024-08-24 18:49:43 +08:00
renguangxuan 3fe19cec0e Fix enum Some syntax is not supported
Issue: IAL50P

Signed-off-by: renguangxuan <renguangxuan@huawei.com>
Change-Id: Ie42543cd5dd203846538057e5f4656a2083c3996
2024-08-23 16:26:52 +08:00
ElevenDuan c03bfa3e03 Fix codecheck
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IAKCJH?from=project-issue
Signed-off-by: ElevenDuan <duanshiyi1@huawei.com>
Change-Id: I3d9defec25c6ce9f44b54028d11f2e60e1672956
2024-08-16 09:57:33 +08:00
huyunhui1 499117c6c7 Fix codecheck warnings
Issue: https://gitee.com/open_harmony/dashboard?issue_id=IAHPN1

Signed-off-by: huyunhui1 <huyunhui1@huawei.com>
Change-Id: I8af7896431901e174e022d9d5fe746dab1fd1c9c
2024-08-07 18:33:27 +08:00
huyunhui1 c2f8330563 Enable api sub version controlling
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IACORD

Signed-off-by: huyunhui1 <huyunhui1@huawei.com>
Change-Id: I8c55c90150c4de9c771465ef8b9744abea510f4e
2024-07-20 19:57:00 +08:00
liyue 99b9b8391c Fix syntax error when line breaks in the key type of class and interface
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IA56DC
Test: test262 & es2abc test
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I6e7121c77f4285e1bd52a8b6ab330553b862eb16
2024-06-24 14:21:21 +08:00
liyue fcbe6be66f Fix syntax error when using keywords as identifiers in interface
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I9UFFI
Test: test262 & es2abc tests
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: I857417d88effa83eb4ff435632be891196bc990b
2024-06-03 14:37:46 +08:00
openharmony_ci 18ba78af7b !2362 Fix compalition of super call expression
Merge pull request !2362 from huyunhui/fixsupercall
2024-05-31 10:26:43 +00:00
huyunhui 420f02bbf0 Fix compalition of super call expression
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I9S5M7

Signed-off-by: huyunhui <huyunhui1@huawei.com>
Change-Id: I3f94fbebc1130350c8f8fac5c96eb47d329994f5
2024-05-27 15:28:58 +08:00
twx1284527 8df5b1b695 modify big function
Signed-off-by:tangjiangning<tangjiangning@huawei.com>
2024-05-25 09:29:51 +08:00
openharmony_ci 80849db359 !2276 Fixed parsing error when the condition in for statement is a complex calculation expression
Merge pull request !2276 from LiYue/0507_complex_parser
2024-05-13 01:48:02 +00:00
liyue ddae36c824 Fixed parsing error when the condition in for statement is a complex calculation expression
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I9O2VM
Test: test262 & es2abc tests
Signed-off-by: liyue <liyue210@huawei.com>
Change-Id: Ic54d8eeafd8190fad3a00fc6d66e40f514d0e086
2024-05-11 17:16:17 +08:00
ah db0eb77235 告警处
理

Signed-off-by: ah <liangahui@h-partners.com>
2024-05-08 10:46:13 +08:00
jiangkaiwen 94473467cc Fix codecheck warnings of the master branch
Issue:I9K5WQ

Signed-off-by: jiangkaiwen <jiangkaiwen2@huawei.com>
Change-Id: Ie8471a23348f3fce7fd6753242e4b14fc77516bb
2024-05-02 22:48:16 +08:00
wuhailong fca7ec09ac Support Ts close-source har
Signed-off-by: wuhailong <wuhailong22@huawei.com>
Change-Id: If9e06f3882eaff8f4a96d5d69d3fbe53782f35a3
2024-05-01 16:28:08 +08:00
huyunhui 98fc29e4aa Fix shared module in hsp and close-source har
Issue: https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/I9GWD3

Signed-off-by: huyunhui <huyunhui1@huawei.com>
Change-Id: I197a89e553291b98b797f4625b97c7646a9fcde0
2024-04-16 14:59:11 +08:00
openharmony_ci 1a95bfe892 !1790 Support shared module
Merge pull request !1790 from huyunhui/sendable_module
2024-04-05 13:38:24 +00:00
huyunhui 0ea555e99d implement use shared
Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I91CQ6

Signed-off-by: huyunhui <huyunhui1@huawei.com>
Change-Id: Ie1dcf33bd09d8f2bbf2ebd0843c8c81cdef05117
2024-04-03 16:09:17 +00:00
openharmony_ci 72695cf09d !2053 Code fixed for performance
Merge pull request !2053 from shixiaowei4/perfFix
2024-04-02 13:26:10 +00:00
jiangkaiwen 011df743b2 Fix the bug that CheckFieldKey() function intercepts BigInt
Issue:I9AUO9

Signed-off-by: jiangkaiwen <jiangkaiwen2@huawei.com>
Change-Id: I2780b152e79f425fc90d34a2eb79f3af6a96a4fd
2024-03-27 08:41:40 +00:00
shixiaowei4 016183b123 Fix code for performance
Signed-off-by: shixiaowei4 <shixiaowei4@huawei.com>
Change-Id: I78261e751c463a85c7d5c951c42d9b535432e23f
2024-03-26 11:40:07 +00:00