Home
last modified time | relevance | path

Searched full:literal (Results 1 – 25 of 1263) sorted by relevance

12345678910>>...51

/arkcompiler/ets_frontend/ets2panda/test/compiler/ts/
Dtest-type-literal-expected.txt27 "program": "test-type-literal.ts"
32 "program": "test-type-literal.ts"
41 "program": "test-type-literal.ts"
46 "program": "test-type-literal.ts"
59 "program": "test-type-literal.ts"
64 "program": "test-type-literal.ts"
73 "program": "test-type-literal.ts"
78 "program": "test-type-literal.ts"
89 "program": "test-type-literal.ts"
94 "program": "test-type-literal.ts"
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest-type-literal-expected.txt27 "program": "test-type-literal.ts"
32 "program": "test-type-literal.ts"
41 "program": "test-type-literal.ts"
46 "program": "test-type-literal.ts"
59 "program": "test-type-literal.ts"
64 "program": "test-type-literal.ts"
73 "program": "test-type-literal.ts"
78 "program": "test-type-literal.ts"
89 "program": "test-type-literal.ts"
94 "program": "test-type-literal.ts"
[all …]
/arkcompiler/runtime_core/libabckit/include/cpp/headers/
Dliteral.h27 * @brief Literal
29 class Literal : public ViewInResource<AbckitLiteral *, const File *> {
34 /// @brief abckit::DefaultHash<Literal>
35 friend class abckit::DefaultHash<Literal>;
39 * @brief Construct a new Literal object
42 Literal(const Literal &other) = default;
47 * @return Literal&
49 Literal &operator=(const Literal &other) = default;
52 * @brief Construct a new Literal object
55 Literal(Literal &&other) = default;
[all …]
Dfile_impl.h43 inline abckit::LiteralArray File::CreateLiteralArray(const std::vector<abckit::Literal> &literals) … in CreateLiteralArray()
47 for (const auto &literal : literals) { in CreateLiteralArray() local
48 litsImpl.push_back(literal.GetView()); in CreateLiteralArray()
112 inline abckit::Literal File::CreateLiteralBool(bool val) const in CreateLiteralBool()
114 AbckitLiteral *literal = GetApiConfig()->cMapi_->createLiteralBool(GetResource(), val); in CreateLiteralBool() local
116 return abckit::Literal(literal, GetApiConfig(), this); in CreateLiteralBool()
119 inline abckit::Literal File::CreateLiteralDouble(double val) const in CreateLiteralDouble()
121 AbckitLiteral *literal = GetApiConfig()->cMapi_->createLiteralDouble(GetResource(), val); in CreateLiteralDouble() local
123 return abckit::Literal(literal, GetApiConfig(), this); in CreateLiteralDouble()
126 inline abckit::Literal File::CreateLiteralLiteralArray(const abckit::LiteralArray &val) const in CreateLiteralLiteralArray()
[all …]
Dfile.h21 #include "literal.h"
138 abckit::Literal CreateLiteralBool(bool val) const;
141 * @brief Creates Literal containing the given byte value `value`.
142 * @return `Literal`.
143 * @param [ in ] value - Byte value that will be stored in the literal to be created.
147 abckit::Literal CreateLiteralU8(uint8_t value) const;
150 * @brief Creates Literal containing the given short value `value`.
151 * @return `Literal`.
152 * @param [ in ] value - Short value that will be stored in the literal to be created.
156 abckit::Literal CreateLiteralU16(uint16_t value) const;
[all …]
Dliteral_impl.h21 #include "literal.h"
25 inline bool Literal::GetBool() const in GetBool()
32 inline abckit::LiteralArray Literal::GetLiteralArray() const in GetLiteralArray()
39 inline uint8_t Literal::GetU8() const in GetU8()
46 inline uint16_t Literal::GetU16() const in GetU16()
53 inline uint32_t Literal::GetU32() const in GetU32()
60 inline uint64_t Literal::GetU64() const in GetU64()
67 inline float Literal::GetFloat() const in GetFloat()
74 inline double Literal::GetDouble() const in GetDouble()
81 inline uint16_t Literal::GetMethodAffiliate() const in GetMethodAffiliate()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-template-literal-expected.txt20 "program": "test-template-literal.js"
25 "program": "test-template-literal.js"
34 "program": "test-template-literal.js"
39 "program": "test-template-literal.js"
47 "program": "test-template-literal.js"
52 "program": "test-template-literal.js"
73 "program": "test-template-literal.js"
78 "program": "test-template-literal.js"
86 "program": "test-template-literal.js"
91 "program": "test-template-literal.js"
[all …]
Dtest-string-literal-expected.txt13 "program": "test-string-literal.js"
18 "program": "test-string-literal.js"
26 "program": "test-string-literal.js"
31 "program": "test-string-literal.js"
44 "program": "test-string-literal.js"
49 "program": "test-string-literal.js"
57 "program": "test-string-literal.js"
62 "program": "test-string-literal.js"
75 "program": "test-string-literal.js"
80 "program": "test-string-literal.js"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/15.literal_types/
Dfunction_literal_type.params.yaml17 Use unexpected literal type as an argument for the function
29 String literal type could not be substituted by its superclass string
36 Use literal type as an argument for the function
47 String literal type could substitute its superclass
62 String literal type is overload-equivalent to string
69 Function returns literal type without return type specified.
88 Function returns literal type having return type specified.
109 Use custom type, made of literal type, as function parameter. String argument value used.
111 type LITERAL = "some str"
112 function foo(i: LITERAL ) { }
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dobject_literals_properties.ets.migrate.json24 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
34 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
54 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
74 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
104 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
114 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
134 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
144 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
[all …]
Dobject_literals_properties.ets.arkts2.json24 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
34 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
54 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
84 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
94 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
124 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
134 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
144 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
154 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
[all …]
Dsendable_class_initialization.ets.json24 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
34 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
44 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
64 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
84 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
104 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
114 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
124 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
134 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
Dobject_literals_autofixes.ets.json34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
44 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
74 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
84 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
104 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
114 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
124 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
134 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dlimited_literal_type.ets.arkts2.json24 "rule": "Literal types are restricted(arkts-limited-literal-types)",
54 "rule": "Literal types are restricted(arkts-limited-literal-types)",
64 "rule": "Literal types are restricted(arkts-limited-literal-types)",
94 "rule": "Literal types are restricted(arkts-limited-literal-types)",
144 "rule": "Literal types are restricted(arkts-limited-literal-types)",
184 "rule": "Literal types are restricted(arkts-limited-literal-types)",
204 "rule": "Literal types are restricted(arkts-limited-literal-types)",
244 "rule": "Literal types are restricted(arkts-limited-literal-types)",
284 "rule": "Literal types are restricted(arkts-limited-literal-types)",
304 "rule": "Literal types are restricted(arkts-limited-literal-types)",
[all …]
Dobject_literals_properties.ets.json24 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
44 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
54 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
84 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
114 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
124 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
134 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dobject_literals_properties.ets.autofix.json44 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
54 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
105 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
115 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
166 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
176 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
228 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
249 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
270 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
291 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/interop/
Dobject_literal_constructor.ets.arkts2.json24 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
44 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
54 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
74 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
94 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
104 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
114 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
124 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
134 …"rule": "Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2…
[all …]
Dobject_literal_union_type.ets.arkts2.json24 …"rule": "Object literal not compatible with target union type. (arkts-interop-d2s-object-literal-n…
34 …"rule": "Object literal not compatible with target union type. (arkts-interop-d2s-object-literal-n…
44 …"rule": "Object literal not compatible with target union type. (arkts-interop-d2s-object-literal-n…
54 …"rule": "Object literal not compatible with target union type. (arkts-interop-d2s-object-literal-n…
/arkcompiler/ets_frontend/ets2panda/compiler/base/
Dliterals.h19 #include "ir/expressions/literal.h"
25 class Literal; variable
55 class Literal {
57 explicit Literal() = default;
59 … explicit Literal(LiteralTag tag, const util::StringView &str) : tag_(tag), value_(str.Mutf8()) {} in Literal() function
60 explicit Literal(const util::StringView &str) : tag_(LiteralTag::STRING), value_(str.Mutf8()) {} in Literal() function
61 explicit Literal(uint32_t number) : tag_(LiteralTag::INTEGER), value_(number) {} in Literal() function
62 explicit Literal(double number) : tag_(LiteralTag::DOUBLE), value_(number) {} in Literal() function
63 …explicit Literal(bool boolean) : tag_(LiteralTag::BOOLEAN), value_(static_cast<uint32_t>(boolean))… in Literal() function
65 DEFAULT_COPY_SEMANTIC(Literal);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/
Dtest6.ts.json44 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
54 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
64 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
74 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
84 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
94 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
104 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
114 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
124 …bjects of \"Sendable\" type can not be initialized using object literal or array literal (arkts-se…
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyLiteralsProto.cpp104 for (const auto &literal : array.literals_) { in Serialize() local
106 Literal::Serialize(literal, *protoLiteral); in Serialize()
114 panda::pandasm::LiteralArray::Literal literal; in Deserialize() local
115 Literal::Deserialize(protoLiteral, literal); in Deserialize()
116 array.literals_.emplace_back(literal); in Deserialize()
120 void Literal::Serialize(const panda::pandasm::LiteralArray::Literal &literal, protoPanda::Literal &… in Serialize() argument
122 protoLiteral.set_tag(static_cast<uint32_t>(literal.tag_)); in Serialize()
124 VariantValue::Serialize(literal.value_, *value); in Serialize()
127 void Literal::Deserialize(const protoPanda::Literal &protoLiteral, panda::pandasm::LiteralArray::Li… in Deserialize() argument
129 literal.tag_ = static_cast<panda::panda_file::LiteralTag>(protoLiteral.tag()); in Deserialize()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DInvalidLexer.ets65 /* @@? 16:16 Error SyntaxError: Unexpected token 'identification literal'. */
66 /* @@? 16:16 Error SyntaxError: Unexpected token 'string literal'. */
69 /* @@? 19:19 Error SyntaxError: Invalid numeric literal */
70 /* @@? 19:19 Error SyntaxError: Unexpected token 'identification literal'. */
73 /* @@? 23:13 Error SyntaxError: Invalid numeric literal */
74 /* @@? 23:13 Error SyntaxError: Unexpected token 'identification literal'. */
78 /* @@? 29:18 Error SyntaxError: Invalid character literal */
79 /* @@? 30:1 Error SyntaxError: Unterminated character literal */
80 /* @@? 30:1 Error SyntaxError: Unexpected token 'identification literal'. */
81 /* @@? 30:1 Error SyntaxError: Unsupported character literal */
[all …]
/arkcompiler/runtime_core/abc2program/
Dabc_module_array_processor.cpp30 std::vector<panda::pandasm::LiteralArray::Literal> literal_vec; in FillProgramData()
73 void AbcModuleArrayProcessor::FillModuleRequests(std::vector<panda::pandasm::LiteralArray::Literal>… in FillModuleRequests()
76 panda::pandasm::LiteralArray::Literal module_size = { in FillModuleRequests()
82 panda::pandasm::LiteralArray::Literal module_request = { in FillModuleRequests()
90 …yProcessor::FillRegularImportEntry(std::vector<panda::pandasm::LiteralArray::Literal> &literal_vec, in FillRegularImportEntry()
93 panda::pandasm::LiteralArray::Literal local_name = { in FillRegularImportEntry()
98 panda::pandasm::LiteralArray::Literal import_name = { in FillRegularImportEntry()
103 panda::pandasm::LiteralArray::Literal module_request = { in FillRegularImportEntry()
111 std::vector<panda::pandasm::LiteralArray::Literal> &literal_vec, in FillNamespaceImportEntry()
114 panda::pandasm::LiteralArray::Literal local_name = { in FillNamespaceImportEntry()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_cast/
Dtest_cast.ets21 let arg12: "literal" = "literal";
22 if (funcArgType(arg12) as "literal" == "literal") {
30 let arg12: "literal" = "literal";
31 if (funcArgType(arg12) as "literal" == "literal2") {
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dconst_array_resolver.cpp78 std::optional<std::vector<pandasm::LiteralArray::Literal>> ConstArrayResolver::FillLiteralArray(Ins… in FillLiteralArray()
80 std::vector<pandasm::LiteralArray::Literal> literals {size}; in FillLiteralArray()
115 pandasm::LiteralArray::Literal literal {}; in FillLiteralArray() local
116 // create a literal from the array element, if possible in FillLiteralArray()
117 if (!FillLiteral(storeArrayInst, &literal)) { in FillLiteralArray()
118 // if not, then we can't create a constant literal array in FillLiteralArray()
123 pandasm::LiteralArray::Literal defaultLiteral {}; in FillLiteralArray()
128 literals[index] = literal; in FillLiteralArray()
133 // save the literal array only if it is completely filled in FillLiteralArray()
141 return std::optional<std::vector<pandasm::LiteralArray::Literal>> {std::move(literals)}; in FillLiteralArray()
[all …]

12345678910>>...51