Home
last modified time | relevance | path

Searched full:signatures (Results 1 – 25 of 271) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/ets2panda/checker/
DETSchecker.cpp73 compiler::Signatures::BUILTIN_BOOLEAN_CLASS,
74 compiler::Signatures::BUILTIN_BYTE_CLASS,
75 compiler::Signatures::BUILTIN_CHAR_CLASS,
76 compiler::Signatures::BUILTIN_SHORT_CLASS,
77 compiler::Signatures::BUILTIN_INT_CLASS,
78 compiler::Signatures::BUILTIN_LONG_CLASS,
79 compiler::Signatures::BUILTIN_FLOAT_CLASS,
80 compiler::Signatures::BUILTIN_DOUBLE_CLASS,
81 compiler::Signatures::BUILTIN_FUNCTION0_CLASS,
82 compiler::Signatures::BUILTIN_FUNCTION1_CLASS,
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/scripts/
Dsignatures.rb19 module Signatures module
21 SIGNATURES = Hash.new() constant
36 Signatures::DEFINES[define.ref] = define
45 Signatures::PRIMITIVES[primitive.ref] = primitive.name
50 Signatures::TYPEDESCRIPTORS[typedescriptor.ref] = typedescriptor.name
56 Signatures::BUILTINS[builtin.ref] = [sig, builtin.name]
59 data.signatures.each do |signature|
69 Signatures::SIGNATURES[signature.ref] = sig
73 Signatures::DYNAMIC[lang.name] = OpenStruct.new(lang)
80 Signatures.wrap_data(data)
/arkcompiler/ets_frontend/ets2panda/compiler/templates/
Dsignatures.h.erb27 class Signatures {
29 explicit Signatures() = delete;
32 % Signatures::DEFINES.each do |ref, define|
41 % Signatures::PRIMITIVES.each do |ref, name|
46 % Signatures::TYPEDESCRIPTORS.each do |ref, name|
51 % Signatures::BUILTINS.each do |ref, desc|
56 % Signatures::BUILTINS.each do |ref, desc|
60 // Builtin signatures
61 % Signatures::SIGNATURES.each do |ref, name|
69 % Signatures::DYNAMIC.each do |lang, data|
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DtypeCreation.cpp28 #include "generated/signatures.h"
326 ETSFunctionType *ETSChecker::CreateETSFunctionType(ArenaVector<Signature *> &signatures) in CreateETSFunctionType() argument
328 …auto *funcType = Allocator()->New<ETSFunctionType>(signatures[0]->Function()->Id()->Name(), Alloca… in CreateETSFunctionType()
330 for (auto *it : signatures) { in CreateETSFunctionType()
357 …*ETSChecker::CreateETSFunctionType(ir::ScriptFunction *func, ArenaVector<Signature *> &&signatures, in CreateETSFunctionType() argument
361 …return Allocator()->New<ETSDynamicFunctionType>(this, name, std::move(signatures), func->Language(… in CreateETSFunctionType()
364 return Allocator()->New<ETSFunctionType>(this, name, std::move(signatures)); in CreateETSFunctionType()
401 {compiler::Signatures::BUILTIN_BIGINT_CLASS, GlobalTypeId::ETS_BIG_INT_BUILTIN}, in GetNameToTypeIdMap()
402 {compiler::Signatures::BUILTIN_STRING_CLASS, GlobalTypeId::ETS_STRING_BUILTIN}, in GetNameToTypeIdMap()
403 {compiler::Signatures::BUILTIN_OBJECT_CLASS, GlobalTypeId::ETS_OBJECT_BUILTIN}, in GetNameToTypeIdMap()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe27.md1 # Construct signatures are not supported in interfaces
3 Rule ``arkts-no-ctor-signatures-iface``
7 ArkTS does not support construct signatures. Use methods instead.
42 …15: Use ``class`` instead of a type with constructor signature (``arkts-no-ctor-signatures-type``)
Drecipe17.md1 # Indexed signatures are not supported
3 Rule ``arkts-no-indexed-signatures``
7 ArkTS does not allow indexed signatures. Use arrays instead.
Drecipe15.md3 Rule ``arkts-no-ctor-signatures-type``
7 ArkTS does not support constructor signatures in object types. Use classes
48 - Recipe 014: Use ``class`` instead of a type with call signature (``arkts-no-call-signatures``)
Drecipe14.md3 Rule ``arkts-no-call-signatures``
7 ArkTS does not support call signatures in object types. Use classes instead.
51 …15: Use ``class`` instead of a type with constructor signature (``arkts-no-ctor-signatures-type``)
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dstdlib_array.ts.json24 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
44 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
64 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
84 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
Dstdlib_array.ts.arkts2.json24 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
44 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
64 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
84 "rule": "Indexed signatures are not supported (arkts-no-indexed-signatures)",
Ddynamic_ctor_call.ts.json34 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
44 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
54 … "rule": "Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)",
74 …ule": "Use \"class\" instead of a type with constructor signature (arkts-no-ctor-signatures-type)",
Dconstructor_types.ts.json24 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
74 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
104 … "rule": "Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)",
124 …ule": "Use \"class\" instead of a type with constructor signature (arkts-no-ctor-signatures-type)",
134 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
144 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
Ddynamic_ctor_call.ts.arkts2.json44 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
64 "rule": "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",
84 … "rule": "Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)",
114 …ule": "Use \"class\" instead of a type with constructor signature (arkts-no-ctor-signatures-type)",
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSemitter.cpp129 func.returnType = pandasm::Type(Signatures::PRIMITIVE_VOID, 0); in GenScriptFunction()
158 func.metadata->SetAttribute(Signatures::EXTERNAL); in GenFunctionSignature()
172 variableDebug.signature = Signatures::ANY; in GenVariableSignature()
173 variableDebug.signatureType = Signatures::ANY; in GenVariableSignature()
188 func.metadata->SetAttribute(Signatures::CONSTRUCTOR); in GenExternalFunction()
190 func.metadata->SetAttribute(Signatures::EXTERNAL); in GenExternalFunction()
220 for (auto *signature : globalRecordTable->Signatures()) { in GenAnnotation()
224 func.metadata->SetAttribute(Signatures::EXTERNAL); in GenAnnotation()
267 for (auto *signature : recordTable->Signatures()) { in GenExternalRecord()
271 func.metadata->SetAttribute(Signatures::EXTERNAL); in GenExternalRecord()
[all …]
DETSGen.cpp18 #include "generated/signatures.h"
253 ss << VarBinder()->Program()->ModuleName() << compiler::Signatures::METHOD_SEPARATOR; in FormDynamicModulePropReference()
256 ss << compiler::Signatures::DYNAMIC_MODULE_CLASS << compiler::Signatures::METHOD_SEPARATOR in FormDynamicModulePropReference()
370 fullName.append(".").append(Signatures::ETS_GLOBAL); in FormClassPropReference()
487 methodName = Signatures::Dynamic::SetPropertyBooleanBuiltin(lang); in StorePropertyDynamic()
489 methodName = Signatures::Dynamic::SetPropertyByteBuiltin(lang); in StorePropertyDynamic()
491 methodName = Signatures::Dynamic::SetPropertyCharBuiltin(lang); in StorePropertyDynamic()
493 methodName = Signatures::Dynamic::SetPropertyShortBuiltin(lang); in StorePropertyDynamic()
495 methodName = Signatures::Dynamic::SetPropertyIntBuiltin(lang); in StorePropertyDynamic()
497 methodName = Signatures::Dynamic::SetPropertyLongBuiltin(lang); in StorePropertyDynamic()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/04.declaration_distinguishable_by_signatures/
Ddist.sts19 Declarations with the same name are distinguishable by signatures if:
20 - They are functions with the same name, but their signatures are not override-equivalent.
21 - They are methods with the same name, but their signatures are not override-equivalent.
22 - They are constructors of the same class, but their signatures are not override-equivalent.
/arkcompiler/runtime_core/static_core/verification/models/typesystem/
Dark_typesystem.als39 // indirection here, access to signatures via params atoms
43 // all signatures are different for different params
83 // todo: all params are in signatures
84 // todo: all signatures are used by sorts
106 // check signatures subtyping
108 // two signatures are in subtyping relation if
136 // of same sort + arity and signatures in corresponding relation
157 // relations between params and signatures
/arkcompiler/ets_frontend/es2panda/typescript/types/
DinterfaceType.h92 ArenaVector<Signature *> signatures(allocator_->Adapter()); in CallSignatures()
93 CollectSignatures(&signatures, true); in CallSignatures()
94 return signatures; in CallSignatures()
99 ArenaVector<Signature *> signatures(allocator_->Adapter()); in ConstructSignatures()
100 CollectSignatures(&signatures, false); in ConstructSignatures()
101 return signatures; in ConstructSignatures()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/
Dneg.sts19 …or occurs if a package declares two functions with override-equivalent signatures, a class declares
20 …two methods with override-equivalent signatures or two constructors with override-equivalent signa…
Dpos.sts19 …or occurs if a package declares two functions with override-equivalent signatures, a class declares
20 …two methods with override-equivalent signatures or two constructors with override-equivalent signa…
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DinterfaceType.h92 ArenaVector<Signature *> signatures(allocator_->Adapter()); in CallSignatures()
93 CollectSignatures(&signatures, true); in CallSignatures()
94 return signatures; in CallSignatures()
99 ArenaVector<Signature *> signatures(allocator_->Adapter()); in ConstructSignatures()
100 CollectSignatures(&signatures, false); in ConstructSignatures()
101 return signatures; in ConstructSignatures()
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsStringType.h28 SetAssemblerName(compiler::Signatures::BUILTIN_STRING); in ETSStringType()
36 SetAssemblerName(compiler::Signatures::BUILTIN_STRING); in ETSStringType()
46 SetAssemblerName(compiler::Signatures::BUILTIN_STRING); in ETSStringType()
69 ss << compiler::Signatures::BUILTIN_STRING; in ToAssemblerType()
DetsBigIntType.h29 SetAssemblerName(compiler::Signatures::BUILTIN_BIGINT); in ETSBigIntType()
43 SetAssemblerName(compiler::Signatures::BUILTIN_BIGINT); in ETSBigIntType()
57 ss << compiler::Signatures::BUILTIN_BIGINT; in ToAssemblerType()
DetsNullishTypes.cpp62 ss << compiler::Signatures::BUILTIN_OBJECT; in ToAssemblerType()
67 ETSObjectType::DebugInfoTypeFromName(ss, compiler::Signatures::BUILTIN_OBJECT); in ToDebugInfoType()
113 ss << compiler::Signatures::BUILTIN_OBJECT; in ToAssemblerType()
118 ETSObjectType::DebugInfoTypeFromName(ss, compiler::Signatures::BUILTIN_OBJECT); in ToDebugInfoType()
/arkcompiler/ets_runtime/test/aottest/class_method_signature/
Dexpect_output.txt30 test multi-signatures but one body
32 test multi-signatures but no body

1234567891011