Home
last modified time | relevance | path

Searched +full:non +full:- +full:static (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Ddelete-non-keyword-expected.txt15 "program": "delete-non-keyword.ets"
20 "program": "delete-non-keyword.ets"
37 "program": "delete-non-keyword.ets"
42 "program": "delete-non-keyword.ets"
48 "static": false,
63 "program": "delete-non-keyword.ets"
68 "program": "delete-non-keyword.ets"
93 "program": "delete-non-keyword.ets"
98 "program": "delete-non-keyword.ets"
107 "program": "delete-non-keyword.ets"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/Deque/
DDequeCreateLengthInsertTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
21 …suite.addTest("Deque create an instance that stores single-type data", testCreateSingleTypeInstanc…
41 static readonly testNumber1: number = 1;
42 static readonly testNumber2: number = 2;
43 static readonly testNumber3: number = 3;
44 static readonly testInt29: int = 29;
45 static readonly testNumber1w: number = 10000;
46 static readonly testObject1: Temp = { name: "Dylon", age: 13 };
47 static readonly testObject2: Temp = { name: "Joe", age: 14 };
48 static readonly testObject3: Temp = { name: "Lucy", age: 15 };
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sendable/
Dsendable.ts7 * http://www.apache.org/licenses/LICENSE-2.0
45 print('sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
66 // 2. non-sendable can not inherit from sendable
76 print('non-sendable inherit from non-sendable succeed.');
78 print('non-sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
91 print('non-sendable inherit from sendable succeed.');
93 print('non-sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
96 // 3. non-sendable can not implement sendable
129 print('sendable contain non-sendable succeed.');
131 print('sendable contain non-sendable failed. err: ' + err + ', code: ' + err.code);
[all …]
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
15 sendable inherit from non-sendable failed. err: TypeError: Class not derived from a sendable object…
17 non-sendable inherit from non-sendable succeed.
18 non-sendable inherit from sendable failed. err: TypeError: The subclass of sendable class must be a…
20 sendable contain non-sendable failed. err: TypeError: Cannot set sendable property with mismatched …
21 sendable contain static non-sendable failed. err: TypeError: Cannot set sendable property with mism…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/01.static_methods/
Dnon_static_method_declaration.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static method declaration.
18 assert: A method that is not declared static called an instance method, and sometimes called a non-…
19 tags: [compile-only]
20 ---*/
27 static foo(): void {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/03.field_initialization/
Dnon_static_field_initialization_reference.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Static field 'f' have reference in static variable.
18non-static field f declared in class or interface C, it is a compile-time error if. The reference …
19 tags: [compile-only, negative]
20 ---*/
Dnon_static_field_self_initialization_reference.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static field 'f' have reference in static.
18 assert: For a reference to a non-static field f declared in class or interface C, it is a compile-t…
19 tags: [compile-only, negative]
20 ---*/
Dnon_static_field_initialization.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static field initialization.
18 assert: If there is an initializer in a non-static field declaration, then the initializer has the …
19 ---*/
Dfield_initialization_with_this.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static field initialization with keyword 'this'.
18 assert: It there is an initializer in a non-static field declaration, then the following rules appl…
19 ---*/
Dfield_initialization_with_super.ets1 /*---
2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static field initialization with keyword 'super'.
18 assert: It there is an initializer in a non-static field declaration, then the following rules appl…
19 ---*/
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
DInvalid_rest_element_wtih_tuple_type.ets7 * http://www.apache.org/licenses/LICENSE-2.0
17 static restMethod(...v: [number, B, C]) {
25 /* @@? 17:38 Error TypeError: Cannot make a static reference to the non-static type B */
26 /* @@? 17:41 Error TypeError: Cannot make a static reference to the non-static type C */
/arkcompiler/runtime_core/static_core/tests/verifier-tests/
Daccess_field_nomodifier_core.pa1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 # access to non-public field of a foreign class:
15 # - it must fail in Java if the class is nor inherited by current class, nor stays in the same pack…
16 # - in non-Java language context it is OK
21 # public static int test() {
29 # static int value;
42 i32 value <static>
46 pckg.Test2 obj <static>
52 ldstatic pckg.Test2.value # access to non-public field of a foreign class
/arkcompiler/runtime_core/tests/verifier-tests/
Daccess_field_nomodifier_core.pa1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 # access to non-public field of a foreign class:
15 # - it must fail in Java if the class is nor inherited by current class, nor stays in the same pack…
16 # - in non-Java language context it is OK
21 # public static int test() {
29 # static int value;
42 i32 value <static>
46 pckg.Test2 obj <static>
52 ldstatic pckg.Test2.value # access to non-public field of a foreign class
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D9_classes.rst2 Copyright (c) 2021-2025 Huawei Device Co., Ltd.
6 http://www.apache.org/licenses/LICENSE-2.0
34 - Fields,
35 - Methods, and
36 - Accessors.
59 - ``Public``,
60 - ``Protected``,
61 - ``Internal``, or
62 - ``Private``.
67 Every class defines two class-level scopes (see :ref:`Scopes`): one for
[all …]
/arkcompiler/runtime_core/static_core/abc2program/
Dabc_file_entity_processor.h2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
31static void SetEntityAttribute(T &entity, const std::function<bool()> &shouldSet, std::string_view… in SetEntityAttribute()
35 auto err = entity.metadata->SetAttribute(attribute); in SetEntityAttribute()
43static void SetEntityAttributeValue(T &entity, const std::function<bool()> &shouldSet, std::string… in SetEntityAttributeValue()
48 auto err = entity.metadata->SetAttributeValue(attribute, value); in SetEntityAttributeValue()
54 … panda_file::File::EntityId entityId_; // NOLINT(misc-non-private-member-variables-in-classes)
55 … Abc2ProgramKeyData &keyData_; // NOLINT(misc-non-private-member-variables-in-classes)
56 … const panda_file::File *file_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes)
57 … AbcStringTable *stringTable_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_arraybuffer.h2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
46 static EtsEscompatArrayBuffer *FromEtsObject(EtsObject *arrayBuffer) in FromEtsObject()
51 static constexpr size_t GetClassSize() in GetClassSize()
57 * Creates a byte array in non-movable space.
59 * NOTE: non-movable creation ensures that native code can obtain raw pointer to buffer.
61 ALWAYS_INLINE static ObjectHeader *AllocateNonMovableArray(EtsInt length) in AllocateNonMovableArray()
63 … return EtsByteArray::Create(length, SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT)->GetCoreType(); in AllocateNonMovableArray()
66 ALWAYS_INLINE static EtsLong GetAddress(const EtsByteArray *array) in GetAddress()
68 return reinterpret_cast<EtsLong>(array->GetData<void>()); in GetAddress()
[all …]
/arkcompiler/runtime_core/static_core/libziparchive/extractortool/
Dzip_file_reader.h7 * http://www.apache.org/licenses/LICENSE-2.0
24 class ZipFileReader { // NOLINT(cppcoreguidelines-special-member-functions)
26 static std::shared_ptr<ZipFileReader> CreateZipFileReader(const std::string &filePath);
27 static size_t GetFileLen(const std::string &filePath);
29 // NOLINTNEXTLINE(modernize-pass-by-value)
54 std::string filePath_; // NOLINT(misc-non-private-member-variables-in-classes)
55 size_t fileLen_ = 0; // NOLINT(misc-non-private-member-variables-in-classes)
58 int fd_ = -1; // NOLINT(misc-non-private-member-variables-in-classes)
60 bool closable_ = true; // NOLINT(misc-non-private-member-variables-in-classes)
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/
DP3.ets7 * http://www.apache.org/licenses/LICENSE-2.0
35 static {
40 static {
45 /* @@? P3.ets:26:25 Error SyntaxError: Non-constant initializer of Package should be apply in Initi…
46 /* @@? P3.ets:27:23 Error SyntaxError: Non-constant initializer of Package should be apply in Initi…
49 /* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initi…
51 /* @@? P3.ets:32:6 Error SyntaxError: Non-constant initializer of Package should be apply in Initia…
/arkcompiler/runtime_core/static_core/runtime/tooling/backtrace/
Dbacktrace.h7 * http://www.apache.org/licenses/LICENSE-2.0
36 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
38 char functionName[FUNCTIONNAME_MAX]; // NOLINT(modernize-avoid-c-arrays)
39 char packageName[PACKAGENAME_MAX]; // NOLINT(modernize-avoid-c-arrays)
40 char url[URL_MAX]; // NOLINT(modernize-avoid-c-arrays)
48 uintptr_t methodId; // NOLINT(misc-non-private-member-variables-in-classes)
49 uintptr_t codeBegin; // NOLINT(misc-non-private-member-variables-in-classes)
50 uint32_t codeSize; // NOLINT(misc-non-private-member-variables-in-classes)
61 // CC-OFFNXT(readability-function-size_parameters)
62 static int StepArk(void *ctx, ReadMemFunc readMem, uintptr_t *fp, uintptr_t *sp, uintptr_t *pc,
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/
Darktest.ets2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
75 * @param value1 first value for non-equality
76 * @param value2 second value for non-equality
77 * @param comment optional comment will be printed if non-equality failed
78 * @throws AssertionError if non-equality failed
81 …assertCommon(value1 !== value2, "expected non-equality failed: '" + value1 + "' !== '" + value2 + …
93 let difference = Math.abs(value1 - value2);
101 * @param value1 first value for non-equality
102 * @param value2 second value for non-equality
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dmethod_full.ets2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
27 protected static foo_final/* @@ label4 */(i : int): boolean {
33 /* @@@ label Error TypeError: Function with a non void return type must return a value. */
34 /* @@@ label1 Error TypeError: Function with a non void return type must return a value. */
35 /* @@@ label2 Error TypeError: Function with a non void return type must return a value. */
36 /* @@@ label3 Error TypeError: Function with a non void return type must return a value. */
37 /* @@@ label4 Error TypeError: Function with a non void return type must return a value. */
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/
Dmethod_full.ets7 * http://www.apache.org/licenses/LICENSE-2.0
27 protected static foo_final/* @@ label4 */(i : int): boolean {
33 /* @@@ label Error TypeError: Function with a non void return type must return a value. */
34 /* @@@ label1 Error TypeError: Function with a non void return type must return a value. */
35 /* @@@ label2 Error TypeError: Function with a non void return type must return a value. */
36 /* @@@ label3 Error TypeError: Function with a non void return type must return a value. */
37 /* @@@ label4 Error TypeError: Function with a non void return type must return a value. */
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dcountable_loop_parser.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
25 * ---------------
50 static bool HasPreHeaderCompare(Loop *loop, const CountableLoopInfo &loopInfo);
51 static std::optional<uint64_t> GetLoopIterations(const CountableLoopInfo &loopInfo);
64 const Loop &loop_; // NOLINT(misc-non-private-member-variables-in-classes)
65 CountableLoopInfo loopInfo_ {}; // NOLINT(misc-non-private-member-variables-in-classes)
66 bool isHeadLoopExit_ = false; // NOLINT(misc-non-private-member-variables-in-classes)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/01.class_declaration/01.abstract_classes/
Dabstract_subclass_1.ets2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
16 /*---
17 desc: >-
18 Subclasses of an abstract class can be non-abstract or in turn abstract.
19 A non-abstract subclass of an abstract superclass can be instantiated.
21 for non-static fields of that class are executed.
22 ---*/
/arkcompiler/ets_runtime/ecmascript/
Djs_date_time_format.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
70 std::string property; // NOLINT(misc-non-private-member-variables-in-classes)
71 std::vector<IcuPatternEntry> pairs; // NOLINT(misc-non-private-member-variables-in-classes)
72 …ap<const std::string, const std::string> map; // NOLINT(misc-non-private-member-variables-in-class…
73 std::vector<std::string> allowedValues; // NOLINT(misc-non-private-member-variables-in-classes)
76 // NOLINT(performance-noexcept-move-constructor, hicpp-noexcept-move)
83 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern()
100 static constexpr size_t LOCALE_OFFSET = JSObject::SIZE;
113 static constexpr size_t HONOR_CYCLE_BITS = 3;
[all …]

12345678910>>...26