Home
last modified time | relevance | path

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

12345678910>>...20

/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dtype_literals.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
34 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
44 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
54 … "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)",
74 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
84 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
94 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
104 … "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)",
[all …]
Dtype_literals.ts.autofix.json31 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
48 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
70 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
92 … "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)",
131 … "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)",
170 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
187 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
209 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
[all …]
Dobject_literals_3.ts.json24 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
44 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
54 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Dobject_literals_autofixes.ts.json34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
44 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
124 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
134 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Dobject_literals.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
44 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
64 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
124 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
134 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Dobject_literals_3.ts.autofix.json36 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
58 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
80 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
90 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
112 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
134 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
156 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
166 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
176 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
186 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Ddestructuring_for_loop.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
34 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
44 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
54 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
124 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
134 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
144 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
154 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
Dobject_literals_autofixes.ts.autofix.json46 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
68 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
100 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
122 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
132 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
154 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
176 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
198 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
208 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
230 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Dmapped_types.ts.json34 … "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)",
94 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
174 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
184 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
194 … "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)",
Dobject_literals.ts.autofix.json36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
68 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
100 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
110 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
120 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
130 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
140 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
150 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
160 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
170 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Dinterfaces_props.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
34 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
54 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
Ddelete_operator.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
54 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
84 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
104 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
124 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
Ddestructuring_parameters.ts.json34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
54 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
144 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
214 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
224 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
244 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
[all …]
Ddestructuring_assignments.ts.json54 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
124 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
144 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
154 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
164 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
234 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
264 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
[all …]
Ddestructuring_declarations.ts.json34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
54 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
134 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
144 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
284 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
294 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Ddestructuring_assignments.ts.autofix.json66 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
86 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
106 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
138 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
148 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
168 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
178 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
200 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
318 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
348 … arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)…
[all …]
Dobject_literals_2.ts.autofix.json36 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
46 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
56 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
66 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
76 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
86 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
96 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
106 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
116 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
126 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
Dobject_literals_2.ts.json24 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
44 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
54 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule38.ts.json24 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
44 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
54 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
64 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
74 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
94 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
104 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
114 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Drule38.ts.autofix.json36 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
46 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
56 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
66 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
76 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
86 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
96 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
106 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
116 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
126 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
[all …]
Drule102.ts.json34 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
54 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
74 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
84 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
Drule40.ts.json24 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
34 …al must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
44 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
/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…

12345678910>>...20