Home
last modified time | relevance | path

Searched full:implements (Results 1 – 25 of 2613) sorted by relevance

12345678910>>...105

/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_inheritance.ets.migrate.ets94 // case1: implements local interface
95 // == case1.1: implements sendable
97 class sendableClass9 implements localSendableInterface {} // OK
99 // == case1.2: implements non-sendable
101 class sendableClass10 implements localNonSendableInterface {} // OK
103 // case2: implements import interface
104 // == case2.1: implements sendable
106 class sendableClass11 implements sendableInterface {} // OK
108 // == case2.2: implements non-sendable
110 class sendableClass12 implements nonSendableInterface {} // OK
[all …]
Dsendable_class_inheritance.ets94 // case1: implements local interface
95 // == case1.1: implements sendable
97 class sendableClass9 implements localSendableInterface {} // OK
99 // == case1.2: implements non-sendable
101 class sendableClass10 implements localNonSendableInterface {} // OK
103 // case2: implements import interface
104 // == case2.1: implements sendable
106 class sendableClass11 implements sendableInterface {} // OK
108 // == case2.2: implements non-sendable
110 class sendableClass12 implements nonSendableInterface {} // OK
[all …]
Dsendable_class_inheritance_2.ets19 class GoodA implements lang.ISendable {}
21 class BadA implements lang.ISendable {} // Fixable
26 class GoodB implements B {}
28 class BadB implements B {} // Fixable
38 class BadC2 extends C implements lang.ISendable {} // Fixable
Dsendable_class_inheritance_2.ets.migrate.ets19 class GoodA implements lang.ISendable {}
22 class BadA implements lang.ISendable {} // Fixable
27 class GoodB implements B {}
30 class BadB implements B {} // Fixable
42 class BadC2 extends C implements lang.ISendable {} // Fixable
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
DoptionalClassProperty1.ets18 // 1. multiple classes implements single interface
22 class C11 implements I1 {
25 class C12 implements I1 {
29 // 2. multiple classes implements multiple interfaces
36 class C21 implements I21, I22 {
40 class C22 implements I21, I22 {
50 class C3 implements I3 {
59 class C4 implements I4 {
67 class C5 implements I5 {
78 class C6 implements I6 {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/02.access_to_common_union_members/
Dcm_fld3.params.yaml25 class A implements I {
28 class B implements J {
45 class A implements I {
48 class B implements J {
65 class A implements I {
68 class B implements J {
83 class A implements I {
86 class B implements J {
104 class A implements I {
107 class B implements J {
[all …]
Dcm_meth3.params.yaml25 class A implements I {
30 class B implements J {
49 class A implements I {
54 class B implements J {
73 class A implements I {
78 class B implements J {
95 class A implements I {
100 class B implements J {
120 class A implements I {
125 class B implements J {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe51.md1 # Classes cannot be specified in ``implements`` clause
3 Rule ``arkts-implements-only-iface``
7 ArkTS does not allow to specify a class in implements clause. Only interfaces
20 class C1 implements C {
35 class C1 implements C {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interfaces/interface_method_returns_value/arkts_interface/interface_method_return_value/
Dtest.ets75 class TestClass implements ISuperInterface {
108 class ReturnsLiteral implements IReturnLiteral {
114 class ReturnsBoolean implements IReturnBoolean {
120 class ReturnsUnion implements IReturnUnion {
128 // class ReturnsRef implements IReturnRef {
137 class ReturnsArray implements IReturnArray {
145 class HasLiteralProperty implements ILiteralProperty{
149 class HasBooleanProperty implements IBooleanProperty{
153 // class HasrefProperty implements IRefProperty{
157 class HasMappedProperty implements IMappedProperty{
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_interfaces/
Dinterface_type_parameter_default.params.yaml18 class Derived implements Base {}
23 class Derived implements Base<OtherType> {}
28 class Derived<T = OtherType> implements Base<T> {}
33 class Derived implements Base {}
38 class Derived implements Base<SomeType> {}
43 class Derived implements Base<OtherType, SomeType> {}
48 class Derived<V> implements Base<V> {}
53 class Derived implements Base {}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/generic_declarations/generic_interfaces/
Dcheck_return_value_type.params.yaml22 class GenericClass implements GenericInterface {
37 class GenericClass implements GenericInterface<string> {
52 class GenericClass implements GenericInterface {
67 class GenericClass implements GenericInterface {
82 class GenericClass implements GenericInterface {
97 class GenericClass implements GenericInterface<string> {
116 class GenericClass implements GenericInterface<Animal> {
131 class GenericClass implements GenericInterface<string> {
150 class GenericClass implements GenericInterface<Animal> {
169 class GenericClass implements GenericInterface<Animal> {
[all …]
Dverify_generic_method_params_case.params.yaml22 class StringProcessor implements Processor<string> {
39 class UndefinedProcessorImpl implements UndefinedProcessor {
55 class FunctionWithParamsProcessor implements Processor<(x: number) => number> {
71 class NumberProcessorImpl implements NumberProcessor {
87 class NumberProcessorImpl implements NumberProcessor {
103 class StringProcessor implements Processor<string> {
119 class TupleProcessor implements Processor<[string, number]> {
136 class NullProcessorImpl implements NullProcessor {
152 class NumberProcessorImpl implements NumberProcessor {
168 class FunctionTypeProcessor implements Processor<() => string> {
[all …]
Dgeneric_interface_function.params.yaml22 class FunctionValue implements GenericInterface<number> {
37 class FunctionValue implements GenericInterface<boolean> {
52 class FunctionValue implements GenericInterface<null> {
67 class FunctionValue implements GenericInterface<undefined> {
82 class FunctionValue implements GenericInterface<number> {
97 class FunctionValue implements GenericInterface<number> {
112 class FunctionValue implements GenericInterface<number> {
127 class FunctionValue implements GenericInterface<number> {
142 class FunctionValue implements GenericInterface<number> {
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/
Dtest4.ts.json44 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
54 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
64 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
74 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
84 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
94 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
104 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
114 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
124 …"rule": "In ts files, \"Sendable\" types cannot be used in implements and extends clauses (arkts-n…
/arkcompiler/ets_frontend/es2panda/test/compiler/interop/etsInterface/
DtesExtends3.ts17 class A implements I1 {
19 "implements static:L<packagename>/src/main/ets/<filepath>/I1;"
25 "implements static:L<packagename>/src/main/ets/<filepath>/I1;"
33 class C extends B implements I3 {
35 …"implements static:L<packagename>/src/main/ets/<filepath>/I1;,L<packagename>/src/main/ets/<filepat…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/
Dsingle_interface_overload_neg.params.yaml21 class A<F,G> implements I<F,G> {}
30 class A<F> implements I<F> {}
40 class A<T> implements I<T> {}
49 class A implements I {}
58 class A implements I {}
67 class A implements I {}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/02.class_or_interface_casting_conversions/
Duserdef_ref.params.yaml80 class A implements J {}
87 class A implements J {}
95 class A implements J {}
103 class B extends A implements I {}
111 class B extends A implements I {}
119 class B extends A implements I {}
128 class A implements I, J {}
135 class A implements I {}
208 class A implements J {}
216 class A implements J {}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/
Doverride_compatibility_class.params.yaml155 class A implements IBase {}
156 class B implements IDerived {}
177 class A implements IBase {}
178 class B implements IDerived {}
193 class A implements IBase {}
194 class B implements IDerived {}
214 class A implements IBase {}
215 class B implements IDerived {}
242 class A implements IBase {}
243 class B implements IDerived {}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interface/ets_to_ts/
Dinterface_method.ets25 class AnyTypeMethodClass<T> implements AnyTypeMethod<T> {
41 class UnionTypeMethodClass implements UnionMethod {
56 // class LiteralValueMethodClass implements LiteralWithValue {
71 class TupleTypeMethodClass implements TupleT {
86 class SubsetByRefClass implements ArgInterface {
109 class SubsetByValueClass implements SubsetByValue {
125 // class WithOptionalMethodClass implements OptionalMethod {
134 // class WithoutOptionalMethodClass implements OptionalMethod {
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dclass_late_initialization_with_invalid_type_04.ets20 class B implements A<string>{
24 class C<T extends Object> implements A<T>{
28 class D<T extends string> implements A<T>{
32 class E<T> implements A<T>{
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dclass_implements_interface.ets22 export class C implements I
34 export class C2 implements I2
46 export class C3 implements I3
58 export class C4 implements I4
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dforbidden2.params.yaml32 class B extends A implements I {}
40 class A implements I {}
49 class B implements J {}
50 class C implements K {}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/10.interfaces/07.interface_inheritance/multiple_interface/child_specifies_parent_use_case/
Dchild_specifies_parent_use_case_05.ets32 class Parent1Impl implements Parent1 {
38 class Parent2Impl implements Parent2 {
44 class Parent3Impl implements Parent3 {
54 class ChildImpl implements Child {
Dchild_specifies_parent_use_case_18.ets32 class Parent1Impl implements Parent1 {
38 class Parent2Impl implements Parent2 {
44 class Parent3Impl implements Parent3 {
53 class ChildImpl implements Child {
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule30_6.ets25 // X implements interface Z, which makes relation between X and Y explicit.
26 class C implements Z, Z1 {
36 // Y implements interface Z, which makes relation between X and Y explicit.
37 class C2 implements Z, Z1 {

12345678910>>...105