Home
last modified time | relevance | path

Searched full:fields (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/fields/
Dfields.ts29 import { Fields } from './lib';
44 const fields = new Fields(); constant
45 assertEq(fields.readonlyBoolean_, true);
46 assertEq(Fields.staticFloat_.toFixed(PRECISION), (ONE + ONE_TENTH).toFixed(PRECISION));
47 assertEq(fields.number_.toFixed(PRECISION), (TWO + TWO_TENTH).toFixed(PRECISION));
48 assertEq(fields.Number_.toFixed(PRECISION), (THREE + THREE_TENTH).toFixed(PRECISION));
49 assertEq(fields.double_.toFixed(PRECISION), (FOUR + FOUR_TENTH).toFixed(PRECISION));
50 assertEq(fields.Double_.toFixed(PRECISION), (FIVE + FIVE_TENTH).toFixed(PRECISION));
51 assertEq(fields.int_, SIX);
54 assertEq(fields.object_ instanceof Object, true);
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/events/
Devents.yaml14 # To add new event, create new record in the 'events' section with following fields:
16 # - fields - data fields that will be stored within event. The type of each field should be a real …
28 fields:
41 fields:
56 fields:
66 fields:
73 fields:
86 fields:
108 fields:
113 fields:
[all …]
Devents_gen.h.erb34 % event.fields.select(&:is_enum?).each do |field|
49 …virtual void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type}.join(', ') %>) {} /…
60 % event.fields.select(&:is_enum?).each do |field|
77 % event.fields.each do |field|
103 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name.camelizeback }…
105 …auto event = new EventRecord(<%= event.name.camelize %>Event{<%= event.fields.map {|f| f.name.came…
169 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name.camelizeback }…
171 …file_ << "<%= event.name.camelize %>," << <%= event.fields.map{|f| f.name.camelizeback }.join(" <<…
191 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name.camelizeback }…
192 …LOG(INFO, EVENTS) << "<%= event.name.camelize %>," << <%= event.fields.map {|f| f.name.camelizebac…
[all …]
/arkcompiler/runtime_core/libpandabase/events/
Devents.yaml14 # To add new event, create new record in the 'events' section with following fields:
16 # - fields - data fields that will be stored within event. The type of each field should be a real …
28 fields:
41 fields:
56 fields:
66 fields:
79 fields:
101 fields:
106 fields:
114 fields:
[all …]
Devents_gen.h.erb34 % event.fields.select(&:is_enum?).each do |field|
49 …virtual void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type}.join(', ') %>) {} /…
60 % event.fields.select(&:is_enum?).each do |field|
77 % event.fields.each do |field|
103 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %…
105 …auto event = new EventRecord(<%= event.name.camelize %>Event{<%= event.fields.map(&:name).join(', …
169 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %…
171 …file_ << "<%= event.name.camelize %>," << <%= event.fields.map(&:name).join(" << ',' << ") %> << s…
191 …void <%= event.name.camelize %>(<%= event.fields.map {|f| f.arg_type + ' ' + f.name }.join(', ') %…
192 …LOG(INFO, EVENTS) << "<%= event.name.camelize %>," << <%= event.fields.map(&:name).join(" << ',' <…
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/extended_features/
Dindexable_collections_array.ets.json24 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
34 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
44 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
54 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
64 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
74 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
84 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
94 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
104 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
114 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Ddeclare_class_bad_5.ets53 /* @@? 17:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
54 /* @@? 18:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
55 /* @@? 19:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
56 /* @@? 20:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
57 /* @@? 21:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
58 /* @@? 22:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
59 /* @@? 23:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
60 /* @@? 24:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
61 /* @@? 38:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
62 /* @@? 42:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dparameter_properties.ets.json24 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
34 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
44 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
54 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
64 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
74 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
94 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
104 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
124 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
135 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
[all …]
Dparameter_properties.ets.arkts2.json24 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
34 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
44 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
104 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
114 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
164 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
184 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
194 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
234 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
244 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
[all …]
Dindexable_type_element_access.ets.json24 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
34 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
44 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
54 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
64 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
74 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
Dproperty_access_by_index.ets.json24 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
34 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
44 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
84 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
94 "rule": "Indexed access is not supported for fields (arkts-no-props-by-index)",
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/02.access_to_common_union_members/
Dcm_fld1.params.yaml16 # Common fields in classes
18 // classes, fields of any type
32 // classes, fields of number type
46 // classes, fields of bigint type
60 // classes, fields of Integral type
74 // classes, fields of Error type
88 // classes, fields of union literal type
102 // classes, fields of union type
116 // classes, fields of array type
130 // classes, fields of tuple type
[all …]
Dcm_fld2.params.yaml16 # Common fields in superclasses
18 // classes, fields of any type
34 // classes, fields of number type
52 // classes, fields of bigint type
68 // classes, fields of Integral type
92 // classes, fields of Error type
106 // classes, fields of union literal type
128 // classes, fields of union type
148 // classes, fields of array type
164 // classes, fields of tuple type
[all …]
/arkcompiler/runtime_core/docs/diagrams/
Dgc-mark.puactivity29 :Mark all fields in Reference except 'referent';
31 :Mark all fields in object;
37 mark object == mark object and add all non-primitive fields to the Mark Stack
38 …mark all fields in object == mark all directly referenced objects and add their un-marked fields t…
/arkcompiler/runtime_core/static_core/docs/diagrams/
Dgc-mark-activity.plantuml29 :Mark all fields in Reference except 'referent';
31 :Mark all fields in object;
37 mark object == mark object and add all non-primitive fields to the Mark Stack
38 …mark all fields in object == mark all directly referenced objects and add their un-marked fields t…
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
DannotationUsage_missing_param_for_function_param.ets28 /* @@? 22:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without …
29 /* @@? 22:16 Error TypeError: The required field 'testProperty1' must be specified. Fields without …
30 /* @@? 22:32 Error TypeError: The required field 'testProperty1' must be specified. Fields without …
31 /* @@? 25:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without …
32 /* @@? 25:53 Error TypeError: The required field 'testProperty1' must be specified. Fields without …
DannotationUsage_missing_arguements02.ets29 /* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without d…
30 /* @@? 23:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without d…
31 /* @@? 23:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without d…
32 /* @@? 25:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without d…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectGetBadCases.ets20 failures += test(reflectGetBadCases(), "Reflect.get on types without fields and elements");
59 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
65 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
71 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
77 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
83 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
89 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
95 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
101 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
107 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule25.ets.json24 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
34 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
44 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
54 … "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe25.md1 # Declaring fields in ``constructor`` is not supported
7 ArkTS does not support declaring class fields in the ``constructor``.
8 Declare class fields inside the ``class`` declaration instead.
/arkcompiler/ets_runtime/ecmascript/
Djs_date.cpp654 std::array<int64_t, DATE_LENGTH> fields = {0}; in ToDateString() local
655 if (!GetThisDateValues(thread, &fields, true)) { in ToDateString()
660 str.append(WEEK_DAY_NAME[fields[WEEKDAY]]) // Append weekdy name in ToDateString()
662 .append(MONTH_NAME[fields[MONTH]]) // Append mouth name in ToDateString()
664 ConvertAndAppend(fields[DAYS], STR_LENGTH_OTHERS, str); in ToDateString()
666 ConvertAndAppend(fields[YEAR], STR_LENGTH_YEAR, str); in ToDateString()
677 std::array<int64_t, DATE_LENGTH> fields = {0}; in ToDateString() local
678 GetDateValues(thread, timeMs, &fields, true); in ToDateString()
692 str.append(WEEK_DAY_NAME[fields[WEEKDAY]]) // Append weekday name in ToDateString()
694 .append(MONTH_NAME[fields[MONTH]]) // Append mouth name in ToDateString()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/xgc/
Dmark_deep_js2sts_test.cpp66 auto fields = proxy->ClassAddr<Class>()->GetInstanceFields(); in GCStarted() local
67 if (fields.size() != 1) { in GCStarted()
69 err << "Expected 1 field, but got " << fields.size(); in GCStarted()
73 if (fields[0].GetType().GetId() != panda_file::Type::TypeId::REFERENCE) { in GCStarted()
75 err << "Expected the reference field, but got " << fields[0].GetType(); in GCStarted()
79 child_ = ObjectAccessor::GetFieldObject(proxy, fields[0]); in GCStarted()
82 err << "Expected 1 field, but got " << fields.size(); in GCStarted()
/arkcompiler/ets_frontend/test262/
Des2022_tests.txt186 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-assignment-exp…
187 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-additive-expre…
188 language/expressions/class/cpn-class-expr-fields-computed-property-name-from-expression-coalesce.js
189 language/expressions/class/cpn-class-expr-fields-computed-property-name-from-identifier.js
190 language/expressions/class/cpn-class-expr-fields-computed-property-name-from-additive-expression-su…
191 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-condition-expr…
192 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-numeric-litera…
193 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-null.js
194 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-additive-expre…
195 language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-function-decla…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/map_mirror_classes/
Dtest_map_mirror_classes.cpp39 auto fields = klass->GetRuntimeClass()->GetInstanceFields(); in CheckOffsetOfFields() local
40 ASSERT_EQ(fields.size(), membersList.size()); in CheckOffsetOfFields()
42 for (size_t i = 0; i < fields.size(); i++) { in CheckOffsetOfFields()
43 ASSERT_NE(fields[i].GetName().data, nullptr); in CheckOffsetOfFields()
44 EXPECT_STREQ(utf::Mutf8AsCString(fields[i].GetName().data), membersList[i].name); in CheckOffsetOfFields()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dclasses.rst18 A class declaration introduces a new type and defines its fields, methods,
21 In the following example, the class ``Person`` is defined that has fields
58 Fields chapter
62 Classes can have instance fields, static fields, or both.
66 Instance Fields
69 Instance fields exist on every instance of a class. Each instance has its own
70 set of instance fields:
95 ``static`` Fields
99 fields belong to the class itself, and all instances of the class share the
100 same set of ``static`` fields.
[all …]

12345678910>>...24