Home
last modified time | relevance | path

Searched full:interface (Results 1 – 25 of 2244) sorted by relevance

12345678910>>...90

/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D10_interfaces.rst21 An interface declaration declares an *interface type*, i.e., a reference
28 methods, and so implement the interface.
31 interface declaration
32 interface type
40 interface
42 Creating an instance of interface type is not possible.
46 An interface can be declared a *direct extension* of one or more other
47 interfaces. In that case the interface inherits all members from the interfaces
51 instance of the class implements all methods specified by the interface(s).
53 superinterfaces implement. The interface inheritance allows objects to
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dunique_names.sts19 interface A {
30 export interface B {
34 export interface C {
36 } // Not duplicate, interface C has two merging declarations
40 export interface B {
43 export interface C {
45 } // Not duplicate, interface C has two merging declarations
49 interface B {
55 interface C {
63 interface D {
[all …]
Dobject_literals_autofixes.ts.autofix.json37 "replacementText": "interface GeneratedObjectLiteralInterface_1 {\n}\n"
46 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
59 … "replacementText": "interface GeneratedObjectLiteralInterface_2 {\n hello: string;\n}\n"
68 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
91 …"replacementText": "interface GeneratedObjectLiteralInterface_3 {\n a: number;\n b: number;\…
100 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
113 …"replacementText": "interface GeneratedObjectLiteralInterface_5 {\n field: string;\n field1:…
122 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
132 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
145 "replacementText": "interface GeneratedObjectLiteralInterface_6 {\n}\n"
[all …]
Dobject_literals_autofixes.ts.json34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
44 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
74 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
84 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
104 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
114 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
124 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
134 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dsendable_class_inheritance.sts40 // sendable interface
41 interface localSendableInterface extends lang.ISendable {}
43 // non-sendable interface
44 interface localNonSendableInterface {}
46 // sendable interface type alias
49 // non-sendable interface type alias
92 // class + interface
94 // case1: implements local interface
103 // case2: implements import interface
151 // class + interface
[all …]
Dobject_literals_3.ts.autofix.json27 "replacementText": "interface GeneratedObjectLiteralInterface_1 {\n}\n"
36 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
49 … "replacementText": "interface GeneratedObjectLiteralInterface_2 {\n hello: string;\n}\n"
58 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
71 "replacementText": "interface GeneratedTypeLiteralInterface_1 {\n}\n"
90 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
103 …"replacementText": "interface GeneratedObjectLiteralInterface_3 {\n field: string;\n field1:…
112 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
125 …"replacementText": "interface GeneratedObjectLiteralInterface_4 {\n field: number;\n field1:…
134 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dobject_literals_3.ts.json24 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
54 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
74 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
84 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
94 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
104 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
114 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
124 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dinterfaces.rst18 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:
40 // Interface:
41 interface Area {
61 Interface Properties
64 An interface property can have the form of a field, a getter, a setter, or both.
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DinterfaceAssignment.ts17 interface A {
25 interface B extends A {
36 interface C1 { variable
40 interface C2 { variable
46 interface C3 extends C1 { variable
54 interface D4 extends D3, D2 {
58 interface D1 {
62 interface D3 {
66 interface D2 extends D1 {
70 interface D5 extends D4, D1, D3 {
[all …]
DmemberExpTests.ts21 interface Interface1 {
25 interface Interface2 {
42 interface Interface3 {
50 interface Interface4 {
57 interface Interface5 {
60 interface Interface6 {
67 interface Interface6 {
70 interface Interface7 {
73 interface Interface8 {
83 interface Interface9 {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ts/
DinterfaceAssignment.ts17 interface A {
25 interface B extends A {
36 interface C1 { variable
40 interface C2 { variable
46 interface C3 extends C1 { variable
54 interface D4 extends D3, D2 {
58 interface D1 {
62 interface D3 {
66 interface D2 extends D1 {
70 interface D5 extends D4, D1, D3 {
[all …]
DmemberExpTests.ts21 interface Interface1 {
25 interface Interface2 {
42 interface Interface3 {
50 interface Interface4 {
57 interface Interface5 {
60 interface Interface6 {
67 interface Interface6 {
70 interface Interface7 {
73 interface Interface8 {
83 interface Interface9 {
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest_GetOrSetAccessor7.ts17 interface Iest1 {
21 interface Iest2 {
25 interface Iest3 {
29 interface Iest4 {
33 interface Iest5 {
37 interface Iest6 {
41 interface Iest7 {
45 interface Iest8 {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/11.local_classes_and_interfaces/
Dlocal_class_with_access_modifier.params.yaml66 public interface I {}
69 protected interface I {}
72 private interface I {}
75 interface I {
80 interface I {
85 interface I {
90 interface I {
95 interface I {
100 interface I {
105 interface I {
[all …]
Dlocal_class_and_interface_declaration.params.yaml74 // Deep interface declaration in class body inside another local class.
79 interface I {
120 // Local interface declaration inside class method
123 interface I {
183 // Deep local interface declaration inside interface method inside another local class.
184 interface I {
188 interface I {
238 // Local interface declaration inside main()
240 interface I {
278 // Deep local interface declaration inside a function and multiple local classes
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/12.union_types/access_to_common_union_members/
Dcm_fld3.params.yaml19 interface I {
22 interface J {
39 interface I {
42 interface J {
59 interface I {
62 interface J {
79 interface I {
82 interface J extends I {}
97 interface I {
101 interface J {
[all …]
Dcm_meth3.params.yaml19 interface I {
22 interface J {
43 interface I {
46 interface J {
67 interface I {
70 interface J {
91 interface I {
94 interface J extends I {}
114 interface I {
117 interface J {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_interfaces/
Dwrong_interface_type_parameter_default.params.yaml16 - interface Base<T = SomeType, T = OtherType> {}
17 - interface Base<T, T = SomeType> {}
18 - interface Base<T = SomeType, V>
19 - interface Base<T = 5>
20 - interface Base<T = true>
21 - interface Base<T = "param">
22 - interface Base<T = Base<T>>
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/02.object_literal_of_interface_type/
Din.params.yaml17 interface A {}
18 interface B {}
28 interface B {
42 interface A {
45 interface B {
48 interface C {
58 interface A {
71 interface A {
85 interface A {
94 interface A {
[all …]
/arkcompiler/runtime_core/libabckit/include/cpp/headers/arkts/
Dannotation_interface.h47 * @brief Construct a new Annotation Interface object
60 * @brief Construct a new Annotation Interface object
73 * @brief Destroy the Annotation Interface object
78 * @brief Add new field to the annotation interface.
80 * @param [ in ] type - Type that is used to create the field of the Annotation Interface.
81 * @param [ in ] value - Value that is used to create the field of the Annotation Interface.
82 * @param [ in ] name - Name that is used to create the field of the Annotation Interface.
87 …* @note Set `ABCKIT_STATUS_UNSUPPORTED` error if annotation interface itself doesn't have `ABCKIT_…
93 * @brief Remove field from the annotation interface.
94 * @param [ in ] field - Field to remove from the Annotation Interface.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/
Dmultiple_interfaces_inheritance.params.yaml17 interface I {
22 interface J extends I {
34 interface I {
39 interface J extends I {
50 interface I {
55 interface J {
67 interface I {
72 interface J {
83 interface I {
88 interface J {
Dsingle_interface_overload_neg.params.yaml17 interface I<F, G> {
26 interface I<F> {
36 interface I<T> {
45 interface I {
48 interface J implements I {
56 interface I {
59 interface J implements I {
67 interface I {
70 interface J implements I {
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe102.md1 # Interface can not extend interfaces with the same method
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 {
Drecipe19.md16 interface Identity {
21 interface Contact {
35 interface Identity {
40 interface Contact {
45 interface Employee extends Identity, Contact {}
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DFunction.sts19 export interface Function<R> {}
21 export interface ThrowingFunction0<out R> extends Function<R> {
25 export interface ThrowingFunction1<in P1, out R> extends Function<R> {
29 export interface ThrowingFunction2<in P1, in P2, out R> extends Function<R> {
33 export interface ThrowingFunction3<in P1, in P2, in P3, out R> extends Function<R> {
37 export interface ThrowingFunction4<in P1, in P2, in P3, in P4, out R> extends Function<R> {
41 export interface ThrowingFunction5<in P1, in P2, in P3, in P4, in P5, out R> extends Function<R> {
45 export interface ThrowingFunction6<in P1, in P2, in P3, in P4, in P5, in P6, out R> extends Functio…
49 export interface ThrowingFunction7<in P1, in P2, in P3, in P4, in P5, in P6, in P7, out R> extends …
53 export interface ThrowingFunction8<in P1, in P2, in P3, in P4, in P5, in P6, in P7, in P8, out R> e…
[all …]

12345678910>>...90