Home
last modified time | relevance | path

Searched full:literals (Results 1 – 25 of 420) sorted by relevance

12345678910>>...17

/arkcompiler/ets_frontend/ets2panda/linter/test/
Dtype_literals.ts.json22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
57 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
64 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
71 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
78 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
85 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
[all …]
Dtype_literals.ts.autofix.json29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
62 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
81 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
100 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
114 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
128 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
147 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
161 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
180 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
[all …]
Dobject_literals_3.ts.json22 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
50 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
64 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
71 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
85 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Dobject_literals_autofixes.ts.json29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
36 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
50 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
64 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
71 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
85 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
92 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
99 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Ddestructuring_for_loop.ts.json22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
29 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
36 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
50 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
85 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
92 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
99 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
106 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
113 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
Dmapped_types.ts.json29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
71 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
127 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
134 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
141 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
148 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
Dobject_literals.ts.autofix.json34 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
60 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
86 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
93 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
100 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
107 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
114 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
121 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
128 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
135 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Dobject_literals_autofixes.ts.autofix.json41 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
60 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
86 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
105 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
112 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
131 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
150 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
169 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
176 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
195 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Dobject_literals_3.ts.autofix.json34 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
53 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
72 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
79 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
98 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
117 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
136 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
143 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
150 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
157 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Ddestructuring_assignments.ts.json43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)"
71 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
92 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)"
99 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
106 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
141 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)"
162 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)"
183 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)"
[all …]
Ddestructuring_parameters.ts.json29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
50 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
85 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
106 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
155 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
162 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
176 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
[all …]
Ddestructuring_declarations.ts.json29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
64 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
85 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
92 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
176 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
183 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
197 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
[all …]
Dtypes.ts.json43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
99 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
141 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
190 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
204 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
211 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
218 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
225 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
232 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Dobject_literals_2.ts.autofix.json34 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
41 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
48 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
55 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
62 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
69 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
76 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
83 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
90 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
97 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
Dtypes.ts.autofix.json55 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
69 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
132 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
205 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
261 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
287 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
306 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
325 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
344 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
351 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test_rules/
Drule38.ts.json22 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
36 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
43 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
50 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
57 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
64 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
71 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
78 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
85 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Drule38.ts.autofix.json34 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
41 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
48 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
55 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
62 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
69 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
76 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
83 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
90 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
97 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
[all …]
Drule102.ts.json29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
57 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
64 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
Drule40.ts.json22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
Drule43.ts.json22 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
29 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
36 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
Drule138.ts.json22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)"
36 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
43 …ral must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)"
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe40.md1 # Object literals cannot be used as type declarations
3 Rule ``arkts-no-obj-literals-as-types``
7 ArkTS does not support the usage of object literals to declare
43 … must correspond to some explicitly declared class or interface (``arkts-no-untyped-obj-literals``)
44 - Recipe 043: Array literals must contain elements of only inferrable types (``arkts-no-noninferra…
Drecipe43.md1 # Array literals must contain elements of only inferrable types
3 Rule ``arkts-no-noninferrable-arr-literals``
38 … must correspond to some explicitly declared class or interface (``arkts-no-untyped-obj-literals``)
39 - Recipe 040: Object literals cannot be used as type declarations (``arkts-no-obj-literals-as-type…
Drecipe38.md3 Rule ``arkts-no-untyped-obj-literals``
7 ArkTS supports usage of object literals if the compiler can infer to what
8 classes or interfaces such literals correspond to. A compile-time error
9 occurs otherwise. Using literals to initialize classes and interfaces is
143 - Recipe 040: Object literals cannot be used as type declarations (``arkts-no-obj-literals-as-type…
144 - Recipe 043: Array literals must contain elements of only inferrable types (``arkts-no-noninferra…
Drecipe50.md1 # Class literals are not supported
3 Rule ``arkts-no-class-literals``
7 ArkTS does not support class literals. Introduce new named class types

12345678910>>...17