Home
last modified time | relevance | path

Searched refs:Start (Results 1 – 25 of 66) sorted by relevance

123

/arkcompiler/ets_frontend/es2panda/typescript/core/
DbinaryLikeExpression.cpp26 CheckNonNullType(leftType, leftExpr->Start()); in CheckBinaryOperator()
27 CheckNonNullType(rightType, rightExpr->Start()); in CheckBinaryOperator()
56 expr->Start()); in CheckBinaryOperator()
65 expr->Start()); in CheckBinaryOperator()
73 rightExpr->Start()); in CheckBinaryOperator()
83 …owTypeError({"operator ", op, " cannot be applied to types 'bigint' and 'bigint'"}, expr->Start()); in CheckBinaryOperator()
87 ThrowBinaryLikeError(op, leftType, rightType, expr->Start()); in CheckBinaryOperator()
98 CheckNonNullType(leftType, leftExpr->Start()); in CheckPlusOperator()
99 CheckNonNullType(rightType, rightExpr->Start()); in CheckPlusOperator()
110 ThrowTypeError("object is of type 'unknown'", leftExpr->Start()); in CheckPlusOperator()
[all …]
DdestructuringContext.cpp58 checker_->ThrowTypeError({"Cannot find name '", ident->Name(), "'."}, ident->Start()); in HandleDestructuringAssignment()
65 checker_->ThrowAssignmentError(defaultType, variable->TsType(), ident->Start()); in HandleDestructuringAssignment()
69 checker_->ThrowAssignmentError(inferedType, variable->TsType(), ident->Start()); in HandleDestructuringAssignment()
121 objPattern->Start()); in ValidateObjectLiteralType()
168 … checker_->ThrowAssignmentError(defaultType, inferedType, assignmentPattern->Left()->Start()); in HandleAssignmentPattern()
172 assignmentPattern->Start()); in HandleAssignmentPattern()
180 nextContext.Start(); in HandleAssignmentPattern()
188 nextContext.Start(); in HandleAssignmentPattern()
197 id_->Start()); in ValidateInferedType()
205 id_->Start()); in ValidateInferedType()
[all …]
DtypeElaborationContext.cpp54 void ArrayElaborationContext::Start() in Start() function in panda::es2panda::checker::ArrayElaborationContext
80 checker_->ElaborateElementwise(targetElementType, it, it->Start()); in Start()
98 void ObjectElaborationContext::Start() in Start() function in panda::es2panda::checker::ObjectElaborationContext
147 it->Start()); in Start()
157 checker_->ElaborateElementwise(targetElementType, prop->Value(), it->Start()); in Start()
Dfunction.cpp57 ElaborateElementwise(returnType, func->Body()->AsExpression(), func->Body()->Start()); in HandleFunctionReturn()
62 func->ReturnTypeAnnotation()->Start()); in HandleFunctionReturn()
67 func, func->ReturnTypeAnnotation()->Start(), in HandleFunctionReturn()
105 …Error("Return type annotation circularly reference itself", func->ReturnTypeAnnotation()->Start()); in ThrowReturnTypeCircularityError()
112 func->Id()->Start()); in ThrowReturnTypeCircularityError()
118 func->Start()); in ThrowReturnTypeCircularityError()
129 ThrowTypeError({"Parameter ", param->Name(), " implicitly has any type."}, param->Start()); in CheckFunctionIdentifierParameter()
218 ElaborateElementwise(paramType, param->Right(), paramIdent->Start()); in CheckFunctionAssignmentPatternParameter()
236 context.Start(); in CheckFunctionAssignmentPatternParameter()
243 context.Start(); in CheckFunctionAssignmentPatternParameter()
[all …]
Dhelpers.cpp104 … ThrowTypeError({"Cannot assign to '", name, "' because it is not a variable."}, expr->Start()); in CheckReferenceExpression()
108 ThrowTypeError(invalidOptionalChainMsg, expr->Start()); in CheckReferenceExpression()
111 ThrowTypeError(invalidReferenceMsg, expr->Start()); in CheckReferenceExpression()
324 ArrayElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
327 ObjectElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
329 ArrayElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
354 declarator->Id()->Start()); in InferSimpleVariableDeclaratorType()
369 decl->Node()->Start()); in GetTypeOfVariable()
377 decl->Node()->Start()); in GetTypeOfVariable()
421 … ThrowTypeError({"Parameter ", ident->Name(), " implicitly has an 'any' type."}, ident->Start()); in GetTypeOfVariable()
[all …]
DtypeElaborationContext.h45 virtual void Start() = 0;
67 void Start() override;
82 void Start() override;
Dobject.cpp63 it->Declaration()->Node()->Start()); in CheckIndexConstraints()
74 it->Declaration()->Node()->Start()); in CheckIndexConstraints()
206 …alidateInterfaceMemberRedeclaration(type, prop, member->AsTSPropertySignature()->Key()->Start())) { in ResolvePropertiesOfObjectType()
217 …alidateInterfaceMemberRedeclaration(type, method, member->AsTSMethodSignature()->Key()->Start())) { in ResolvePropertiesOfObjectType()
258 ThrowTypeError("Duplicated index signature for type 'number'", it->Start()); in ResolveIndexInfosOfObjectType()
268 ThrowTypeError("Duplicated index signature for type 'string'", it->Start()); in ResolveIndexInfosOfObjectType()
365 key->Start()); in CheckComputedPropertyName()
454 decl->Node()->AsTSInterfaceDeclaration()->Id()->Start()); in GetBaseTypes()
470 extends->Start()); in GetBaseTypes()
481 decl->Node()->AsTSInterfaceDeclaration()->Id()->Start()); in GetBaseTypes()
[all …]
DdestructuringContext.h38 Prepare(typeAnnotation, initializer, id->Start()); in DestructuringContext()
68 virtual void Start() = 0;
99 void Start() override;
120 void Start() override;
/arkcompiler/runtime_core/libpandabase/utils/
Dcframe_layout.h38 static constexpr ssize_t Start() in Start() function
44 return Start() + GetSize(); in End()
87 static constexpr ssize_t HEADER_SIZE = FlagsSlot::End() - LrSlot::Start();
141 return StackArgSlot::Start(); in GetStackArgsStartSlot()
177 return GetOffset<origin, unit>(MethodSlot::Start()); in GetMethodOffset()
183 return GetOffset<origin, unit>(LrSlot::Start()); in GetReturnAddressOffset()
281 return LocalsRegion::Start() + static_cast<ssize_t>(GetLocalsCount()) - 1; in GetOsrFpLrSlot()
291 static_assert(MethodSlot::Start() > LrSlot::Start()); in GetFpLrSlotsCount()
292 return MethodSlot::Start() - LrSlot::Start(); in GetFpLrSlotsCount()
297 static_assert(SlotsRegion::Start() > LrSlot::Start()); in GetTopToRegsSlotsCount()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DmemberExpression.cpp75 checker::Type *baseType = checker->CheckNonNullType(object_->Check(checker), object_->Start()); in Check()
86 …checker->ThrowTypeError({"Type ", indexType, " cannot be used as index type"}, property_->Start()); in Check()
91 Start()); in Check()
96 Start()); in Check()
103 property_->Start()); in Check()
108 property_->Start()); in Check()
113 property_->Start()); in Check()
146 property_->Start()); in Check()
DunaryExpression.cpp133 argument_->Start()); in Check()
140 argument_->Start()); in Check()
147 argument_->Start()); in Check()
151 …hecker->ThrowTypeError("The operand of a delete operator must be a optional.", argument_->Start()); in Check()
178 checker->CheckNonNullType(operandType, Start()); in Check()
183 … checker->ThrowTypeError({"Operator '+' cannot be applied to type '", operandType, "'"}, Start()); in Check()
192 checker->CheckTruthinessOfType(operandType, Start()); in Check()
DupdateExpression.cpp59 checker->CheckNonNullType(operandType, Start()); in Check()
63 Start()); in Check()
DassignmentExpression.cpp173 destructuringContext.Start(); in Check()
180 destructuringContext.Start(); in Check()
187 left_->Start()); in Check()
193 … checker->ThrowTypeError("Cannot assign to this property because it is readonly.", left_->Start()); in Check()
197 checker->ElaborateElementwise(leftType, right_, left_->Start()); in Check()
Didentifier.cpp85 checker->ThrowTypeError({"Cannot find name ", name_}, Start()); in Check()
91 …er->ThrowTypeError({name_, " only refers to a type, but is being used as a value here."}, Start()); in Check()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp91 checker->ElaborateElementwise(annotationType, initializer, declarator->Id()->Start()); in CheckSimpleVariableDeclaration()
105 declarator->Id()->Start()); in CheckSimpleVariableDeclaration()
113 declarator->Id()->Start()); in CheckSimpleVariableDeclaration()
136 .Start(); in Check()
146 .Start(); in Check()
DreturnStatement.cpp75 checker->ThrowTypeError("Setters cannot return a value", Start()); in Check()
84 checker->ElaborateElementwise(funcReturnType, argument_, Start()); in Check()
90 Start()); in Check()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsIndexedAccessType.cpp50 …hecker->ThrowTypeError({"Type ", indexType, " cannot be used as index type"}, indexType_->Start()); in Check()
54 checker->ThrowTypeError("Type has no matching singature for type 'number'", Start()); in Check()
57 checker->ThrowTypeError("Type has no matching singature for type 'string'", Start()); in Check()
DtsQualifiedName.cpp39 checker::Type *baseType = checker->CheckNonNullType(left_->Check(checker), left_->Start()); in Check()
54 …r->ThrowTypeError({"Property ", right_->Name(), " does not exist on this type."}, right_->Start()); in Check()
DtsEnumDeclaration.cpp85 enumVar->Declaration()->Node()->Start()); in EvaluateIdentifier()
95 enumVar->Declaration()->Node()->Start()); in EvaluateIdentifier()
294 …er->ThrowTypeError("Enum member must have initializer.", variable->Declaration()->Node()->Start()); in InferEnumVariableType()
308 init->Start()); in InferEnumVariableType()
318 computedExpr->Start()); in InferEnumVariableType()
332 init->Start()); in InferEnumVariableType()
346 init->Start()); in InferEnumVariableType()
351 init->Start()); in InferEnumVariableType()
/arkcompiler/toolchain/tooling/agent/
Dtracing_impl.cpp31 { "start", &TracingImpl::DispatcherImpl::Start } in Dispatch()
74 void TracingImpl::DispatcherImpl::Start(const DispatchRequest &request) in Start() function in panda::ecmascript::tooling::TracingImpl::DispatcherImpl
78 DispatchResponse response = tracing_->Start(std::move(params)); in Start()
138 DispatchResponse TracingImpl::Start([[maybe_unused]] std::unique_ptr<StartParams> params) in Start() function in panda::ecmascript::tooling::TracingImpl
Dprofiler_impl.cpp29 { "start", &ProfilerImpl::DispatcherImpl::Start }, in Dispatch()
63 void ProfilerImpl::DispatcherImpl::Start(const DispatchRequest &request) in Start() function in panda::ecmascript::tooling::ProfilerImpl::DispatcherImpl
65 DispatchResponse response = profiler_->Start(); in Start()
165 DispatchResponse ProfilerImpl::Start() in Start() function in panda::ecmascript::tooling::ProfilerImpl
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp312 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsModuleDeclaration()
391 …Binder()->AddTsDecl<binder::NamespaceDecl>(lexer_->GetToken().Start(), isDeclare, Allocator(), nam… in ParseTsModuleOrNamespaceDelaration()
417 lexer::SourcePosition moduleStart = lexer_->GetToken().Start(); in ParseTsModuleOrNamespaceDelaration()
476 …auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration()
529 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsModuleBlock()
564 lexer::SourcePosition constVarStar = lexer_->GetToken().Start(); in ParseConstStatement()
663 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseClassDeclaration()
669 auto location = classDefinition->Ident() ? classDefinition->Ident()->Start() : startLoc; in ParseClassDeclaration()
687 lexer::SourcePosition typeStart = lexer_->GetToken().Start(); in ParseTsTypeAliasDeclaration()
703 …auto *decl = Binder()->AddTsDecl<binder::TypeAliasDecl>(lexer_->GetToken().Start(), isDeclare, tsB… in ParseTsTypeAliasDeclaration()
[all …]
DparserImpl.cpp173 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseProgram()
425 lexer::SourcePosition bodyStart = lexer_->GetToken().Start(); in ParseTsTypeLiteralOrTsMappedType()
468 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsTemplateLiteralType()
590 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsTypeAnnotationElement()
727 lexer::SourcePosition startLoc = checkType->Start(); in ParseTsConditionalType()
795 lexer::SourcePosition typeOperatorStart = lexer_->GetToken().Start(); in ParseTsTypeOperatorOrTypeReference()
816 lexer::SourcePosition typeOperatorStart = lexer_->GetToken().Start(); in ParseTsTypeOperatorOrTypeReference()
831 lexer::SourcePosition typeOperatorStart = lexer_->GetToken().Start(); in ParseTsTypeOperatorOrTypeReference()
851 lexer::SourcePosition inferStart = lexer_->GetToken().Start(); in ParseTsTypeOperatorOrTypeReference()
893 lexer::SourcePosition startPos = lexer_->GetToken().Start(); in ParseTsTupleElement()
[all …]
DexpressionParser.cpp85 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseYieldExpression()
145 lexer::SourcePosition startLoc = expr->Start(); in ParseTsAsExpression()
202 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseArrayExpression()
271 …SyntaxError("Invalid left-hand side in array destructuring pattern", arrayExpressionNode->Start()); in ParseArrayExpression()
370 lexer::SourcePosition bodyStart = lexer_->GetToken().Start(); in ParseArrowFunctionExpressionBody()
410 …return ArrowFunctionDescriptor {std::move(params), paramScope, lexer_->GetToken().Start(), arrowSt… in ConvertToArrowParameter()
457 return ArrowFunctionDescriptor {std::move(params), paramScope, expr->Start(), arrowStatus}; in ConvertToArrowParameter()
488 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsGenericArrowFunction()
526 lexer::SourcePosition start = lexer_->GetToken().Start(); in ParseTsTypeAssertion()
548 lexer::SourcePosition start = lexer_->GetToken().Start(); in ParseCoverParenthesizedExpressionAndArrowParameterList()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_tracker.h43 void Start() in Start() function
78 sample_.Start(); in StartTracing()

123