| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 10_interfaces.rst | 21 An interface declaration declares an *interface type*, i.e., a reference 28 methods and so implement the interface. 31 interface declaration 32 interface type 41 interface 47 An interface can declare a *direct extension* of one or more other interfaces. 48 In that case the interface inherits all members from the interfaces it extends 52 instance of the class implements all methods specified by the interface(s). 54 superinterfaces implement. Such interface inheritance allows objects to 58 interface [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | interfaces.rst | 18 An interface declaration introduces a new type. Interfaces are a common way 22 instances that implement a particular interface. 24 An interface usually contains properties and method headers: 28 interface Style { 31 interface Area { 36 The examples below illustrate a class that implements an interface: 41 interface Area { 64 An interface property can be in a form of a field, a getter, a setter, or both. 71 interface Style { 75 interface Style { [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe19.md | 16 interface Identity { 21 interface Contact { 35 interface Identity { 40 interface Contact { 45 interface Employee extends Identity, Contact {}
|
| D | recipe102.md | 7 In TypeScript, an interface that extends two other interfaces with the same method 9 ArkTS because ArkTS does not allow an interface to contain two methods with 19 interface Mover { 22 interface Shaker { 26 interface MoverShaker extends Mover, Shaker { 55 interface Mover { 65 interface Shaker {
|
| D | recipe103.md | 16 interface Document { 20 interface Document { 24 interface Document { 37 interface Document {
|
| D | recipe104.md | 20 interface SelectableControl extends Control { 31 interface Control { 35 interface SelectableControl extends Control {
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
| D | recipe19.md | 16 interface Identity { 21 interface Contact { 35 interface Identity { 40 interface Contact { 45 interface Employee extends Identity, Contact {}
|
| D | recipe102.md | 7 In TypeScript, an interface that extends two other interfaces with the same method 9 ArkTS because ArkTS does not allow an interface to contain two methods with 19 interface Mover { 22 interface Shaker { 26 interface MoverShaker extends Mover, Shaker { 55 interface Mover { 65 interface Shaker {
|
| D | recipe103.md | 16 interface Document { 20 interface Document { 24 interface Document { 37 interface Document {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_itable_builder.cpp | 52 for (auto interface : classInterfaces) { in Build() local 53 auto table = interface->GetITable().Get(); in Build() 57 interfaces.insert(interface); in Build() 87 for (auto interface : classInterfaces) { in Build() local 88 auto table = interface->GetITable().Get(); in Build() 97 auto iterator = interfaces.find(interface); in Build() 99 itable[shift].SetInterface(interface); in Build() 100 interfaces.erase(interface); in Build() 158 auto interface = entry.GetInterface(); in DumpITable() local 159 … LOG(DEBUG, CLASS_LINKER) << "[ interface - " << idxI++ << " ] " << interface->GetName() << ":"; in DumpITable()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/01.class_declaration/05.class_implementation_clause/ |
| D | implements_same_interface_with_diferent_parameters.ets | 17 desc: Implement interface with same parameters. 18 …interface types which are different parameterizations of the same generic interface, or a subtype … 22 interface A<T> { }
|
| D | superinterfaces_of_class_1.ets | 17 desc: Implement interface with superinterface. 18 …rinterface, using the definition of "superinterface of an interface" given in link to interface’s … 21 interface I { } 23 interface J extends I { }
|
| D | indirect_interfaces_Implementation_twice.ets | 17 desc: Direct implement one interface two times. 18 …f the same interface is mentioned as a direct superinterface more than once in a single implements… 22 interface A { } 24 interface B extends A { }
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/ |
| D | const_array_resolver_test.cpp | 46 IrInterfaceTest interface(&program, &maps); in TEST_F() local 48 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 91 IrInterfaceTest interface(&program, &maps); in TEST_F() local 93 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 123 IrInterfaceTest interface(&program, &maps); in TEST_F() local 125 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 167 IrInterfaceTest interface(&program, &maps); in TEST_F() local 169 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 197 IrInterfaceTest interface(&program, &maps); in TEST_F() local 199 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/10.interfaces/06.interface_method_declarations/05.inheriting_methods_with_override_equivalent_signatures/ |
| D | inheritance_multiple_abstract_methods.ets | 18 …interface I inherits a default method whose signature is override-equivalent with another method i… 22 interface A { 26 interface B { 30 interface C { 34 interface D extends A, B, C {
|
| D | override_multiple_default_methods.ets | 18 assert: It is possible for an interface to inherit several methods with override-equivalent signatu… 22 interface A { 28 interface B extends A { 34 interface C extends C { 40 interface D extends A, B, C {
|
| D | inheritance_multiple_default_methods.ets | 18 assert: If an interface I inherits a default method whose signature is override-equivalent with ano… 22 interface A { 28 interface B { 34 interface C { 40 interface D extends A, B, C {
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | codegen_test.cpp | 108 BytecodeOptIrInterface *interface = nullptr; in __anon61fc5db40102() local 110 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40102() 146 BytecodeOptIrInterface *interface = nullptr; in __anon61fc5db40202() local 148 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40202() 184 BytecodeOptIrInterface *interface = nullptr; in __anon61fc5db40302() local 187 BytecodeGen graph_visitor(graph, function, interface, prog); in __anon61fc5db40302() 246 BytecodeOptIrInterface *interface = nullptr; in __anon61fc5db40402() local 248 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40402() 288 BytecodeOptIrInterface interface(&maps, prog); in __anon61fc5db40502() local 290 BytecodeGen graph_visitor(graph, function, &interface, prog); in __anon61fc5db40502() [all …]
|
| D | const_array_resolver_test.cpp | 43 IrInterfaceTest interface(&program, &maps); in TEST_F() local 45 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 86 IrInterfaceTest interface(&program, &maps); in TEST_F() local 88 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 124 IrInterfaceTest interface(&program, &maps); in TEST_F() local 126 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 154 IrInterfaceTest interface(&program, &maps); in TEST_F() local 156 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 185 IrInterfaceTest interface(&program, &maps); in TEST_F() local 187 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/01.subtyping/subtyping_among_class_and_interface_types/ |
| D | generic_sub_and_superinterfaces.ets | 17 desc: Subtyping relation among the generic interface types with same parameters 21 interface A {} 22 interface B {} 24 interface C<T extends A, G extends B> {} 26 interface D<T extends A, G extends B> extends C<T, G> {}
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | ambiguous_call_2.ets | 19 interface I1 {} 20 interface I2 {} 21 interface I3 {} 22 interface I4 {} 23 interface I5 {}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/10.interfaces/02.superinterfaces_and_subinterfaces/ |
| D | extend_clause_with_not_accessible_type.ets | 18 …: Each typeReference in the extends clause of an interface declaration must name an accessible int… 22 interface A { 27 interface B { 31 interface C extends A, B, G {}
|
| D | parametrized_decalration.ets | 17 desc: Decalre interface with parameters and superinterface with same parameters. 18 …ssert: Given a (possibly generic) interface declaration I<F1,...,Fn> (n 0), the direct superinterf… 22 interface A<T, G> {} 24 interface B<T, G> extends A<Object, String> {}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/10.interfaces/04.interface_members/ |
| D | member_inheritance.ets | 18 …interface inherits from its direct superinterfaces all the non-private member types of the superin… 21 interface A { 27 interface B extends A {
|
| D | member_inheritance_private_member.ets | 18 …interface inherits from its direct superinterfaces all the non-private member types of the superin… 22 interface A { 28 interface B extends A {
|