Home
last modified time | relevance | path

Searched refs:Params (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DconditionalTypesSimplifyWhenTrivial.ts21 const fn1 = <Params>(
23 AssertType(<Params>( params: Pick<Params, Exclude<keyof Params, never>>,): Params => params, "<P…
25 params: Pick<Params, Exclude<keyof Params, never>>,
28 ): Params => params;
42 const fn3 = <Params>(
44 AssertType(<Params>( params: Pick<Params, Extract<keyof Params, keyof Params>>,): Params => para…
46 params: Pick<Params, Extract<keyof Params, keyof Params>>,
49 ): Params => params;
70 const fn5 = <Params>(
72 AssertType(<Params>( params: Pick<Params, ExcludeWithDefault<keyof Params, never>>,): Params => …
[all …]
DgenericObjectSpreadResultInSwitch.ts21 type Params = {
25 const getType = <P extends Params>(params: P) => {
28 AssertType(<P extends Params>(params: P) => { const { // Omit foo, ...rest …
46 declare const params: Params;
DindexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.ts23 type Params<T> = Parameters<Extract<T, AnyFunction>>;
26 call<K extends keyof T>(event: K, ...args: Params<T[K]>): void;
/arkcompiler/ets_frontend/es2panda/typescript/types/
Dsignature.cpp79 signatureInfo_->params.size() != other->Params().size()) { in Identical()
88 … relation->IsIdenticalTo(signatureInfo_->params[i]->TsType(), other->Params()[i]->TsType()); in Identical()
105 (source->Params().size() - source->OptionalArgCount()) > signatureInfo_->params.size()) { in AssignmentTarget()
110 for (size_t i = 0; i < source->Params().size(); i++) { in AssignmentTarget()
111 if (!signatureInfo_->restVar && i >= Params().size()) { in AssignmentTarget()
116 … relation->IsAssignableTo(source->Params()[i]->TsType(), signatureInfo_->restVar->TsType()); in AssignmentTarget()
125 relation->IsAssignableTo(source->Params()[i]->TsType(), Params()[i]->TsType()); in AssignmentTarget()
Dsignature.h70 const ArenaVector<binder::LocalVariable *> &Params() const in Params() function
/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h78 const ArenaVector<Expression *> &Params() const in Params() function
83 ArenaVector<Expression *> &Params() in Params() function
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsTypeParameterInstantiation.h39 const ArenaVector<Expression *> &Params() const in Params() function
DtsTypeParameterDeclaration.h54 const ArenaVector<TSTypeParameter *> &Params() const in Params() function
DtsFunctionType.h60 const ArenaVector<Expression *> &Params() const in Params() function
DtsConstructorType.h61 const ArenaVector<Expression *> &Params() const in Params() function
DtsSignatureDeclaration.h63 const ArenaVector<Expression *> &Params() const in Params() function
DtsMethodSignature.h74 const ArenaVector<Expression *> &Params() const in Params() function
/arkcompiler/runtime_core/compiler/tests/
Dvixl_exec_module.h261 params_ = Params(allocator_->Adapter()); in ClearParameters()
264 using Params = ArenaVector<std::pair< variable
282 Params params_;
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DfunctionExpression.cpp54 checker->CheckFunctionParameterDeclarations(func_->Params(), signatureInfo); in Check()
DarrowFunctionExpression.cpp54 checker->CheckFunctionParameterDeclarations(func_->Params(), signatureInfo); in Check()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp581 CheckFunctionParameterDeclarations(func->Params(), overloadSignatureInfo); in InferFunctionDeclarationType()
598 CheckFunctionParameterDeclarations(bodyDeclaration->Params(), signatureInfo); in InferFunctionDeclarationType()
699 if (it->Params().size() > maxArg) { in GetArgRange()
700 maxArg = it->Params().size(); in GetArgRange()
703 … if (callArgsSize >= it->MinArgCount() && (callArgsSize <= it->Params().size() || it->RestVar())) { in GetArgRange()
717 if (index >= signature->Params().size()) { in CallMatchesSignature()
722 sigArgType = signature->Params()[index]->TsType(); in CallMatchesSignature()
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp78 for (const auto *it : func->Params()) { in CompileFunctionParameterDeclaration()
130 pg->CopyRestArgs(param, func->Params().size() - 1); in CompileFunctionParameterDeclaration()
DregScope.cpp90 for (auto *param : funcScope->ParamScope()->Params()) { in FunctionRegScope()
Dpandagen.cpp125 return rootNode_->AsScriptFunction()->Params().size(); in ParamCount()
230 for (const auto *param : topScope_->ParamScope()->Params()) { in CopyFunctionArguments()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp676 for (auto *param : scriptFunc->Params()) { in ResolveReference()
816 auto &funcParams = scope_->AsFunctionVariableScope()->ParamScope()->Params(); in AddMandatoryParam()
Dscope.h457 ArenaVector<LocalVariable *> &Params() in Params() function
462 const ArenaVector<LocalVariable *> &Params() const in Params() function
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp917 for (const auto &t : node->Params()) { in GetTypeIndexFromBuiltinInst()
938 for (const auto &t : node->Params()) { in GetTypeIndexFromGenericInst()
DtypeSystem.h326 for (const auto &t : typeParams->Params()) { in CalculateParamTypes()
564 for (const auto &t : func->Params()) { in FillParameters()
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp2365 if (func->Params().size() != 1) { in ValidateClassSetter()
2379 if (!func->Params().empty()) { in ValidateClassGetter()
3036 for (const auto &param : ctor->Function()->Params()) { in SuperCallShouldBeFirst()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp652 for (auto *it : func->Params()) { in VisitTSParameterProperty()

12