Home
last modified time | relevance | path

Searched refs:exprType (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsAsExpression.cpp86 checker::Type *exprType = expression_->Check(checker); in Check() local
95 return exprType; in Check()
101 checker::Type *exprType = checker->GetBaseTypeOfLiteralType(expression_->Check(checker)); in Check() local
105 targetType, exprType, in Check()
106 {"Conversion of type '", exprType, "' to type '", targetType, in Check()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DswitchStatement.cpp85 checker::Type *exprType = discriminant_->Check(checker); in Check() local
86 bool exprIsLiteral = checker::Checker::IsLiteralType(exprType); in Check()
92 checker::Type *comparedExprType = exprType; in Check()
96 comparedExprType = checker->GetBaseTypeOfLiteralType(exprType); in Check()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DblockExpression.cpp105 if (auto *const exprType = node->Check(checker); exprType != nullptr) { in Check() local
106 SetTsType(exprType); in Check()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DexpandBrackets.cpp57 auto *exprType = checker->AllocNode<ir::OpaqueTypeNode>(dimType); in Perform() local
64 … parser::DEFAULT_SOURCE_FILE, ident, dimension, exprType, ident->Clone(allocator), newExpression); in Perform()
DopAssignment.cpp144 auto *exprType = checker->AllocNode<ir::OpaqueTypeNode>(lcType); in HandleOpAssignment() local
172 ident2 != nullptr ? ident2->Clone(allocator) : nullptr, right, exprType); in HandleOpAssignment()
/arkcompiler/ets_frontend/ets2panda/checker/
DETSAnalyzer.cpp397 auto *exprType = expr->expr_->GetType(checker); in Check() local
399 if (exprType->IsETSVoidType()) { in Check()
404 typeArgTypes.push_back(exprType); // NOTE: Box it if it's a primitive type in Check()
488 auto *exprType = in Check() local
495 …ubstitution, launchPromiseType->TypeArguments()[0]->AsETSTypeParameter()->GetOriginal(), exprType); in Check()
2034 checker::Type *const exprType = st->Right()->Check(checker); in Check() local
2037 if (exprType == nullptr || (!exprType->IsETSArrayType() && !exprType->IsETSStringType())) { in Check()
2039 } else if (exprType->IsETSStringType()) { in Check()
2042 …elemType = exprType->AsETSArrayType()->ElementType()->Instantiate(checker->Allocator(), checker->R… in Check()
2684 auto exprType = expr->expr_->Check(checker); in Check() local
[all …]
DTSAnalyzer.cpp1444 checker::Type *exprType = st->discriminant_->Check(checker); in Check() local
1445 bool exprIsLiteral = checker::TSChecker::IsLiteralType(exprType); in Check()
1451 checker::Type *comparedExprType = exprType; in Check()
1455 comparedExprType = checker->GetBaseTypeOfLiteralType(exprType); in Check()
1663 checker::Type *exprType = expr->Expr()->Check(checker); in Check() local
1672 return exprType; in Check()
1678 checker::Type *exprType = checker->GetBaseTypeOfLiteralType(expr->Expr()->Check(checker)); in Check() local
1682 targetType, exprType, in Check()
1683 {"Conversion of type '", exprType, "' to type '", targetType, in Check()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_builder.cpp589 MIRType &exprType = *GlobalTables::GetTypeTable().GetTypeFromTyIdx(ptyIdx); in CreateAddrofConst() local
590 …emp = mirModule->GetMemPool()->New<MIRAddrofConst>(aNode.GetStIdx(), aNode.GetFieldID(), exprType); in CreateAddrofConst()
603 MIRType *exprType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(ptyIdx); in CreateAddroffuncConst() local
604 auto *mirConst = mirModule->GetMemPool()->New<MIRAddroffuncConst>(aNode.GetPUIdx(), *exprType); in CreateAddroffuncConst()
617 MIRType *exprType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in CreateStrConst() local
618 auto *mirConst = mirModule->GetMemPool()->New<MIRStrConst>(strIdx, *exprType); in CreateStrConst()
631 MIRType *exprType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(ptyIdx); in CreateStr16Const() local
632 auto *mirConst = mirModule->GetMemPool()->New<MIRStr16Const>(strIdx, *exprType); in CreateStr16Const()
/arkcompiler/ets_frontend/ets2panda/linter/src/utils/
DTsUtils.ts1086 const exprType = this.tsTypeChecker.getContextualType(curNode); constant
1087 if (exprType !== undefined && !this.isAnonymous(exprType)) {
1088 const res = this.isDynamicType(exprType)
/arkcompiler/ets_frontend/ets2panda/linter-4.2/src/
DUtils.ts1429 const exprType = this.tsTypeChecker.getContextualType(curNode); constant
1430 if (exprType !== undefined && !this.isAnonymous(exprType)) {
1431 const res = this.isDynamicType(exprType)
DTypeScriptLinter.ts1895 let exprType = this.tsTypeChecker.getTypeAtLocation(tsAsExpr.expression).getNonNullableType(); variable
1896 …if (this.tsUtils.needToDeduceStructuralIdentity(targetType, exprType, tsAsExpr.expression, true)) {
1901 (this.tsUtils.isNumberType(exprType) &&
1903 (this.tsUtils.isBooleanType(exprType) &&
/arkcompiler/ets_frontend/ets2panda/checker/ets/
Dobject.cpp1036 const auto *const exprType = expr->Property()->TsType(); in ValidateTupleIndex() local
1037 ASSERT(exprType != nullptr); in ValidateTupleIndex()
1039 if (!exprType->HasTypeFlag(TypeFlag::CONSTANT) && !tuple->HasSpreadType()) { in ValidateTupleIndex()
1043 if (!exprType->HasTypeFlag(TypeFlag::ETS_ARRAY_INDEX)) { in ValidateTupleIndex()
1047 const int32_t exprValue = GetTupleElementAccessValue(exprType); in ValidateTupleIndex()
/arkcompiler/ets_frontend/ets2panda/linter/src/
DTypeScriptLinter.ts1589 let exprType = this.tsTypeChecker.getTypeAtLocation(tsAsExpr.expression).getNonNullableType(); variable
1590 …if (this.tsUtils.needToDeduceStructuralIdentity(targetType, exprType, tsAsExpr.expression, true)) {
1595 ( this.tsUtils.isNumberType(exprType) && targetType.getSymbol()?.getName() === 'Number' ) ||
1596 ( this.tsUtils.isBooleanType(exprType) && targetType.getSymbol()?.getName() === 'Boolean' )
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSCompiler.cpp1500 checker::Type const *const exprType = st->Right()->TsType(); in Compile() local
1501 ASSERT(exprType->IsETSArrayType() || exprType->IsETSStringType()); in Compile()
1507 if (exprType->IsETSArrayType()) { in Compile()