Home
last modified time | relevance | path

Searched full:attributes (Results 1 – 25 of 153) sorted by relevance

1234567

/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DMethod.ets27 private attributes: int
46 return (this.attributes & Attributes.INHERITED) != 0
50 return (this.attributes & Attributes.STATIC) != 0
55 return (this.attributes & Attributes.FINAL) != 0
59 return (this.attributes & Attributes.ABSTRACT) != 0
63 return (this.attributes & Attributes.CONSTRUCTOR) != 0
67 return (this.attributes & Attributes.GETTER) != 0
71 return (this.attributes & Attributes.SETTER) != 0
103 return this.attributes
115 this.attributes == (oth as Method).attributes
DParameter.ets24 private attributes: int
37 return this.attributes
41 return (this.attributes & Attributes.REST) != 0
45 return (this.attributes & Attributes.OPTIONAL) != 0
56 this.attributes == (oth as Parameter).attributes
DField.ets29 private attributes: int
52 return this.attributes
77 return (this.attributes & Attributes.INHERITED) != 0
81 return (this.attributes & Attributes.STATIC) != 0
86 return (this.attributes & Attributes.READONLY) != 0
98 this.attributes == (oth as Field).attributes
DTypeCreator.ets19 internal static readonly FIELD = Attributes.STATIC | Attributes.INHERITED | Attributes.READONLY
20Attributes.STATIC | Attributes.INHERITED | Attributes.FINAL | Attributes.ABSTRACT | Attributes.CON…
21 internal static readonly LAMBDA = Attributes.THROWING | Attributes.ASYNC
22 internal static readonly CLASS = Attributes.FINAL
23 internal static readonly PARAMETER = Attributes.REST | Attributes.OPTIONAL
491 * Sets all provided attributes to `true`
505 this.attrs.add(Attributes.FINAL, true)
567 if (!fld.attrs.has(Attributes.READONLY)) {
580 if ((mc.attrs.has(Attributes.STATIC))) {
693 * Sets all provided attributes to `true`
[all …]
/arkcompiler/runtime_core/assembler/
Dasm_metadata.rb55 def attributes method
56 @data.attributes.map do |op|
95attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
99 attributes.each do |a|
129 … Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a|
150attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
154 attributes.each do |a|
183attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
187 attributes.each do |a|
232attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
[all …]
/arkcompiler/runtime_core/static_core/assembler/
Dasm_metadata.rb55 def attributes method
56 @data.attributes.map do |op|
95attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
99 attributes.each do |a|
129 … Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a|
150attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
154 attributes.each do |a|
183attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
187 attributes.each do |a|
232attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dshared_builtins.cpp423 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSObjectFunctionHClass() local
424 attributes.SetIsInlinedProps(true); in CreateSObjectFunctionHClass()
425 attributes.SetRepresentation(Representation::TAGGED); in CreateSObjectFunctionHClass()
430 attributes.SetOffset(index); in CreateSObjectFunctionHClass()
431 attributes.SetIsAccessor(each.second); in CreateSObjectFunctionHClass()
433 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes); in CreateSObjectFunctionHClass()
449 PropertyAttributes attributes = PropertyAttributes::Default(false, false, false); in CreateSObjectPrototypeHClass() local
450 attributes.SetIsInlinedProps(true); in CreateSObjectPrototypeHClass()
451 attributes.SetRepresentation(Representation::TAGGED); in CreateSObjectPrototypeHClass()
456 attributes.SetOffset(index); in CreateSObjectPrototypeHClass()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DProcessTest.ets229 function testGetPid(attributes: Map<String, number> ): int {
230 return StdProcess.pid() == attributes.get("pid") ? 0 : 1;
233 function testGetTid(attributes: Map<String, number>): int {
234 return StdProcess.tid() == attributes.get("tid") ? 0 : 1;
237 function testGetPpid(attributes: Map<String, number>): int {
238 return StdProcess.ppid() == attributes.get("ppid") ? 0 : 1;
241 function testGetUid(attributes: Map<String, number>): int {
242 return StdProcess.uid() == attributes.get("uid") ? 0 : 1;
245 function testGetEuid(attributes: Map<String, number>): int {
246 return StdProcess.euid() == attributes.get("euid") ? 0 : 1;
[all …]
/arkcompiler/ets_frontend/merge_abc/protos/
Dmeta.proto24 message Attributes { message
28 repeated Attributes attributes = 2; field
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/
D.pylintrc24 # R0902: Too many instance attributes (too-many-instance-attributes)
33 too-many-instance-attributes,
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.cpp220 … PropertyAttributes attributes = PropertyAttributes::Default(true, false, true); // non-enumerable in CreatePrototypeHClass() local
223 attributes.SetIsAccessor(true); in CreatePrototypeHClass()
226 attributes.SetIsInlinedProps(true); in CreatePrototypeHClass()
227 attributes.SetRepresentation(Representation::TAGGED); in CreatePrototypeHClass()
228 attributes.SetOffset(index); in CreatePrototypeHClass()
229 layout->AddKey(thread, index, key.GetTaggedValue(), attributes); in CreatePrototypeHClass()
270 PropertyAttributes attributes; in CreateConstructorHClass() local
273 attributes = PropertyAttributes::Default(false, false, true); in CreateConstructorHClass()
277 attributes = PropertyAttributes::Default(false, false, true); in CreateConstructorHClass()
280 attributes = PropertyAttributes::Default(true, false, true); in CreateConstructorHClass()
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/
D.pylintrc24 # R0902: Too many instance attributes (too-many-instance-attributes)
35 too-many-instance-attributes,
/arkcompiler/runtime_core/static_core/abc2program/tests/
Dabc2program_test.cpp106 …ool ValidateAttributes(const std::unordered_map<std::string, std::vector<std::string>> &attributes, in ValidateAttributes() argument
109 for (const auto &[key, values] : attributes) { in ValidateAttributes()
439 auto attributes = it.second.metadata->GetAttributes(); in TEST_F() local
440 EXPECT_TRUE(ValidateAttributes(attributes, expectedAttributes)); in TEST_F()
456 auto attributes = it.second.metadata->GetAttributes(); in TEST_F() local
457 EXPECT_TRUE(ValidateAttributes(attributes, expectedAttributes)); in TEST_F()
480 auto attributes = it.second.metadata->GetAttributes(); in TEST_F() local
481 EXPECT_TRUE(ValidateAttributes(attributes, expectedAttributes)); in TEST_F()
503 auto attributes = it.second.metadata->GetAttributes(); in TEST_F() local
504 EXPECT_TRUE(ValidateAttributes(attributes, expectedAttributes)); in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djsnapi_sendable.cpp101 info.attributes[i].IsWritable(), in InitWithPropertiesInfo()
102 info.attributes[i].IsEnumerable(), in InitWithPropertiesInfo()
103 info.attributes[i].IsConfigurable()); in InitWithPropertiesInfo()
105 auto type = GetSharedFieldType(thread, info.types[i], info.attributes[i].GetValue(vm)); in InitWithPropertiesInfo()
107 desc.SetValue(JSNApiHelper::ToJSHandle(info.attributes[i].GetValue(vm))); in InitWithPropertiesInfo()
/arkcompiler/ets_runtime/ecmascript/tests/
Dglobal_dictionary_test.cpp104 …* @tc.desc: Check whether the Attributes Get through calling SetAttributes function is within expe…
114 // set attributes call SetAttributes function in HWTEST_F_L0()
123 * @tc.desc: Create dictionary and set entry calling SetEntry function,Check whether Attributes is
124 * the same as Attributes after calling the ClearEntry function.
141 // check attributes in three in HWTEST_F_L0()
149 * @tc.desc: Update value and Attributes through calling UpdateValueAndAttributes function.
168 // check attributes in five in HWTEST_F_L0()
171 // Update value and attributes in HWTEST_F_L0()
178 // check attributes in five in HWTEST_F_L0()
185 * @tc.desc: Get all Attributes from dictionary and store it in the TaggedArray.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/xml/XmlSerializer/
DXmlSerializerSetAttributesTest.ets26 suite.addTest("Testing multiple attributes in an element", testMultipleAttributesInElement);
27 suite.addTest("Testing three attributes in an element", testThreeAttributesInElement);
28 suite.addTest("Testing four attributes in an element", testFourAttributesInElement);
29 …suite.addTest("Testing non-sequential attributes in an element", testNonSequentialAttributesInElem…
30 …suite.addTest("Testing illegal position for setting attributes", testIllegalPositionForAttributes);
DXmlSerializerEndElementTest.ets25 suite.addTest("Testing end tag without attributes", testEndElementWithoutAttributes);
27 suite.addTest("Testing end tag with multiple attributes", testEndElementWithMultipleAttributes);
29 …suite.addTest("Testing end tag with attributes in nested elements", testEndElementWithAttributesIn…
/arkcompiler/ets_frontend/ets2panda/linter/arkanalyzer/src/core/graph/
DDependsGraph.ts17 interface Attributes { interface
21 interface NodeAttributes extends Attributes {
26 interface EdgeAttributes extends Attributes {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DTypeMethodTest.ets138 … test(cMethod.getAttributes() == Attributes.CONSTRUCTOR, " constructor attrib") +
146 … test(getterMethod.getAttributes() == Attributes.GETTER, " getter attrib") +
154 … test(setterMethod.getAttributes() == Attributes.SETTER, " setter attrib") +
162 … test(createFileExtMethod.getAttributes() == Attributes.STATIC, " static attrib") +
171 … test(abstractWriteMethod.getAttributes() == Attributes.ABSTRACT, " abstract attrib") +
179 … test(closeMethod.getAttributes() == Attributes.INHERITED, " inherited attrib") +
DTypeFieldTest.ets61 test(xf.getAttributes() == Attributes.INHERITED, " no attributes") +
68 test(sf.getAttributes() == 0, " no attributes") +
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Dpipeline_irtoc.cfg34 forceattrs, # Force set function attributes
36 inferattrs, # Infer set function attributes
56 function-attrs, # Deduce function attributes
113 rpo-function-attrs, # Deduce function attributes in RPO
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
Dets_typeapi_test.cpp79 … MIRROR_FIELD_INFO(EtsTypeAPIMethod, attr_, "attributes"), in GetTypeAPIMethodClassMembers()
88 … MIRROR_FIELD_INFO(EtsTypeAPIField, attr_, "attributes"), in GetTypeAPIFieldClassMembers()
96 … MIRROR_FIELD_INFO(EtsTypeAPIParameter, attr_, "attributes")}; in GetTypeAPIParameterClassMembers()
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dmapped_types.ets25 // Removes 'readonly' attributes from a type's properties
35 // Removes 'optional' attributes from a type's properties
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_reflect_test.cpp144 // Reflect.defineProperty (target, propertyKey, attributes)
154 // attributes in HWTEST_F_L0()
155 JSHandle<JSObject> attributes = in HWTEST_F_L0() local
157 // attributes value in HWTEST_F_L0()
161 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), valueKey, value); in HWTEST_F_L0()
162 // attributes writable in HWTEST_F_L0()
165 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), writableKey, writable); in HWTEST_F_L0()
166 // attributes enumerable in HWTEST_F_L0()
169 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), enumerableKey, enumerable); in HWTEST_F_L0()
170 // attributes configurable in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/verification/
DCMakeLists.txt79 panda_target_compile_options(arkverification_tests PUBLIC "-Wno-ignored-attributes")
100 …a_target_compile_options(pandaverification_rapidcheck_gtest_tests PUBLIC "-Wno-ignored-attributes")

1234567