Home
last modified time | relevance | path

Searched refs:ArrayType (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/typescript/types/
DarrayType.cpp23 void ArrayType::ToString(std::stringstream &ss) const in ToString()
36 void ArrayType::Identical(TypeRelation *relation, Type *other) in Identical()
43 void ArrayType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
58 TypeFacts ArrayType::GetTypeFacts() const in GetTypeFacts()
63 Type *ArrayType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *… in Instantiate()
65 return allocator->New<ArrayType>(element_->Instantiate(allocator, relation, globalTypes)); in Instantiate()
DarrayType.h23 class ArrayType : public Type {
25 explicit ArrayType(Type *elementType) : Type(TypeFlag::ARRAY), element_(elementType) {} in ArrayType() function
DtypeMapping.h22 _(TypeFlag::ARRAY, ArrayType) \
DtupleType.cpp31 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DarrayType.cpp22 void ArrayType::ToString(std::stringstream &ss) const in ToString()
35 void ArrayType::Identical(TypeRelation *relation, Type *other) in Identical()
42 void ArrayType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
57 TypeFacts ArrayType::GetTypeFacts() const in GetTypeFacts()
62 Type *ArrayType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *… in Instantiate()
64 return allocator->New<ArrayType>(element_->Instantiate(allocator, relation, globalTypes)); in Instantiate()
DarrayType.h22 class ArrayType : public Type {
24 explicit ArrayType(Type *elementType) : Type(TypeFlag::ARRAY), element_(elementType) {} in ArrayType() function
DtupleType.cpp30 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DType.ets208 return ArrayType.getInstance(td)
431 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.BOOLEAN)
442 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.CHAR)
453 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.BYTE)
464 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.SHORT)
475 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.INT)
486 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.LONG)
497 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.FLOAT)
508 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.DOUBLE)
521 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v))
[all …]
DValue.ets244 } else if (t instanceof ArrayType) {
245 return new ArrayValue(t as ArrayType, o!)
266 return new ArrayValue(ArrayType.BOOLEAN_VAL, v)
270 return new ArrayValue(ArrayType.CHAR_VAL, v)
274 return new ArrayValue(ArrayType.BYTE_VAL, v)
278 return new ArrayValue(ArrayType.SHORT_VAL, v)
282 return new ArrayValue(ArrayType.INT_VAL, v)
286 return new ArrayValue(ArrayType.LONG_VAL, v)
290 return new ArrayValue(ArrayType.FLOAT_VAL, v)
294 return new ArrayValue(ArrayType.DOUBLE_VAL, v)
[all …]
DObject.ets117 } else if (t instanceof ArrayType) {
178 } else if (t instanceof ArrayType) {
242 } else if (t instanceof ArrayType) {
286 if (t instanceof StringType || t instanceof ArrayType) {
346 if (t instanceof ArrayType) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/
Dtest_core_type_array_type.j221 let arrayType : ArrayType;
28 arrayType = Type.of(arrayVar) as ArrayType;
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsArrayType.cpp43 …return checker->Allocator()->New<checker::ArrayType>(elementType_->AsTypeNode()->GetType(checker)); in GetType()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/
Dlmir_builder.h72 using ArrayType = MIRArrayType; variable
272 ArrayType *CreateArrayType(Type *elemType, std::vector<uint32_t> &dimSize);
587 ArrayConstBuilder(LMIRBuilder &builder_, ArrayType *type_) : builder(builder_) in ArrayConstBuilder()
625 ArrayConstBuilder CreateArrayConst(ArrayType *type) in CreateArrayConst()
730 ArrayConst &CreateArrayConstInternal(ArrayType *type);
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsArrayType.cpp66 return checker->Allocator()->New<checker::ArrayType>(elementType_->GetType(checker)); in GetType()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DReflect.ets49 } else if (t instanceof ArrayType) {
97 if (t instanceof ArrayType) {
156 if (vt instanceof ArrayType) {
Djson.ets351 } else if (typ instanceof ArrayType) {
352 let et = (typ as ArrayType).getElementType()
398 private static parseArray(jVal: JSONArray, aType: ArrayType): Object | null {
412 } else if (value instanceof JSONArray && typ instanceof ArrayType) {
413 return JSON.parseArray(value as JSONArray, typ as ArrayType)
/arkcompiler/ets_frontend/ets2panda/checker/types/
DtypeMapping.h23 _(TypeFlag::ARRAY, ArrayType) \
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts18 ArrayType,
239 case ts.SyntaxKind.ArrayType:
240 let arrayType = new ArrayType(typeNode);
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DarrayExpression.cpp268 return checker->Allocator()->New<checker::ArrayType>(arrayElementType); in Check()
286 … elementType = checker->Allocator()->New<checker::ArrayType>(checker->GlobalAnyType()); in CheckPattern()
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h1159 class ArrayType : public BaseType {
1161 …explicit ArrayType(TypeExtractor *extractor, const ir::TSArrayType *arrayDef) : BaseType(extractor) in ArrayType() function
1176 ~ArrayType() = default;
1177 NO_COPY_SEMANTIC(ArrayType);
1178 NO_MOVE_SEMANTIC(ArrayType);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
Dlmir_builder.cpp177 ArrayType *LMIRBuilder::CreateArrayType(Type *elemType, std::vector<uint32_t> &dimSize) in CreateArrayType()
180 return static_cast<ArrayType *>(type); in CreateArrayType()
210 ArrayConst &LMIRBuilder::CreateArrayConstInternal(ArrayType *type) in CreateArrayConstInternal()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
Dfunction.cpp262 Type *restType = Allocator()->New<ArrayType>(GlobalAnyType()); in CheckFunctionRestParameter()
388 Type *placeholder = Allocator()->New<ArrayType>(GlobalAnyType()); in CheckFunctionParameter()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DarrayExpression.cpp250 … elementType = checker->Allocator()->New<checker::ArrayType>(checker->GlobalAnyType()); in CheckPattern()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp278 Type *restType = allocator_->New<ArrayType>(GlobalAnyType()); in CheckFunctionRestParameter()
406 Type *placeholder = allocator_->New<ArrayType>(GlobalAnyType()); in CheckFunctionParameter()
DdestructuringContext.cpp303 return checker_->Allocator()->New<ArrayType>(restArrayElementType); in CreateArrayTypeForRest()

12