summaryrefslogtreecommitdiff
path: root/src/tests/eolian_js
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-23 15:41:28 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-23 15:58:33 +0100
commite984e5a11a777765761e0438911ee714f67cf322 (patch)
tree0a496432fa765c7f8110a3ce6fe7d02eb68963ce /src/tests/eolian_js
parent0c6b0efaee80d6ed64a2ad619d8bcb637fd6bec6 (diff)
eolian: remove pointers from complex and class types
Complex types (i.e. list, array, hash, accessor etc.) now do not require pointers with them anymore (the pointer is implied) and the same goes for class handles. Eolian now explicitly disallows creating pointers to these as well. This is the first part of the work to remove pointers from Eolian completely, with the goal of simplifying the DSL (higher level) and therefore making it easier for bindings (as well as easier API usage). @feature
Diffstat (limited to 'src/tests/eolian_js')
-rw-r--r--src/tests/eolian_js/test_object.eo144
1 files changed, 72 insertions, 72 deletions
diff --git a/src/tests/eolian_js/test_object.eo b/src/tests/eolian_js/test_object.eo
index bf01eb0..b4cd387 100644
--- a/src/tests/eolian_js/test_object.eo
+++ b/src/tests/eolian_js/test_object.eo
@@ -97,227 +97,227 @@ class Test.Object (Eo.Base) {
97 method_array_at_check { 97 method_array_at_check {
98 [[ tests array ]] 98 [[ tests array ]]
99 params { 99 params {
100 array: array<int>*; 100 array: array<int>;
101 index: int; 101 index: int;
102 } 102 }
103 return: int; 103 return: int;
104 } 104 }
105 method_array_with_42_check { 105 method_array_with_42_check {
106 [[ tests parameters ]] 106 [[ tests parameters ]]
107 return: free(own(array<int> *), eina_array_free) @warn_unused; 107 return: free(own(array<int>), eina_array_free) @warn_unused;
108 } 108 }
109 method_array_in_array_out_check { 109 method_array_in_array_out_check {
110 [[ tests parameters ]] 110 [[ tests parameters ]]
111 params { 111 params {
112 @in a_in: array<int> *; 112 @in a_in: array<int>;
113 @out a_out: array<int> *; 113 @out a_out: array<int>;
114 } 114 }
115 } 115 }
116 method_array_of_objects_check { 116 method_array_of_objects_check {
117 params { 117 params {
118 @in a_in: array<Test.Object *> *; 118 @in a_in: array<Test.Object>;
119 } 119 }
120 return: array<Test.Object *> *; 120 return: array<Test.Object>;
121 } 121 }
122 method_array_of_strings_check { 122 method_array_of_strings_check {
123 params { 123 params {
124 @in a_in: array<const(char) *> *; 124 @in a_in: array<const(char) *>;
125 } 125 }
126 return: array<const(char) *> *; 126 return: array<const(char) *>;
127 } 127 }
128 method_array_of_ints_check { 128 method_array_of_ints_check {
129 params { 129 params {
130 @in a_in: array<int> *; 130 @in a_in: array<int>;
131 } 131 }
132 return: array<int> *; 132 return: array<int>;
133 } 133 }
134 method_array_of_bools_check { 134 method_array_of_bools_check {
135 params { 135 params {
136 @in a_in: array<bool> *; 136 @in a_in: array<bool>;
137 } 137 }
138 return: array<bool> *; 138 return: array<bool>;
139 } 139 }
140 method_array_of_doubles_check { 140 method_array_of_doubles_check {
141 params { 141 params {
142 @in a_in: array<double> *; 142 @in a_in: array<double>;
143 } 143 }
144 return: array<double> *; 144 return: array<double>;
145 } 145 }
146 method_array_of_enums_check { 146 method_array_of_enums_check {
147 params { 147 params {
148 @in a_in: array<Test.Enum_Ex> *; 148 @in a_in: array<Test.Enum_Ex>;
149 } 149 }
150 return: array<Test.Enum_Ex> *; 150 return: array<Test.Enum_Ex>;
151 } 151 }
152 method_array_of_structs_check { 152 method_array_of_structs_check {
153 params { 153 params {
154 @in a_in: array<Test.Struct_Ex> *; 154 @in a_in: array<Test.Struct_Ex>;
155 } 155 }
156 return: array<Test.Struct_Ex> *; 156 return: array<Test.Struct_Ex>;
157 } 157 }
158 method_list_with_42_check { 158 method_list_with_42_check {
159 [[ tests parameters ]] 159 [[ tests parameters ]]
160 return: free(own(list<int> *), eina_list_free) @warn_unused; 160 return: free(own(list<int>), eina_list_free) @warn_unused;
161 } 161 }
162 method_list_in_list_out_check { 162 method_list_in_list_out_check {
163 [[ tests parameters ]] 163 [[ tests parameters ]]
164 params { 164 params {
165 @in l_in: list<int> *; 165 @in l_in: list<int>;
166 @out l_out: list<int> *; 166 @out l_out: list<int>;
167 } 167 }
168 } 168 }
169 method_list_of_objects_check { 169 method_list_of_objects_check {
170 params { 170 params {
171 @in l_in: list<Test.Object *> *; 171 @in l_in: list<Test.Object>;
172 } 172 }
173 return: list<Test.Object *> *; 173 return: list<Test.Object>;
174 } 174 }
175 method_list_of_strings_check { 175 method_list_of_strings_check {
176 params { 176 params {
177 @in l_in: list<const(char) *> *; 177 @in l_in: list<const(char) *>;
178 } 178 }
179 return: list<const(char) *> *; 179 return: list<const(char) *>;
180 } 180 }
181 method_list_of_ints_check { 181 method_list_of_ints_check {
182 params { 182 params {
183 @in l_in: list<int> *; 183 @in l_in: list<int>;
184 } 184 }
185 return: list<int> *; 185 return: list<int>;
186 } 186 }
187 method_list_of_bools_check { 187 method_list_of_bools_check {
188 params { 188 params {
189 @in l_in: list<bool> *; 189 @in l_in: list<bool>;
190 } 190 }
191 return: list<bool> *; 191 return: list<bool>;
192 } 192 }
193 method_list_of_doubles_check { 193 method_list_of_doubles_check {
194 params { 194 params {
195 @in l_in: list<double> *; 195 @in l_in: list<double>;
196 } 196 }
197 return: list<double> *; 197 return: list<double>;
198 } 198 }
199 method_list_of_enums_check { 199 method_list_of_enums_check {
200 params { 200 params {
201 @in l_in: list<Test.Enum_Ex> *; 201 @in l_in: list<Test.Enum_Ex>;
202 } 202 }
203 return: list<Test.Enum_Ex> *; 203 return: list<Test.Enum_Ex>;
204 } 204 }
205 method_list_of_structs_check { 205 method_list_of_structs_check {
206 params { 206 params {
207 @in l_in: list<Test.Struct_Ex> *; 207 @in l_in: list<Test.Struct_Ex>;
208 } 208 }
209 return: list<Test.Struct_Ex> *; 209 return: list<Test.Struct_Ex>;
210 } 210 }
211 method_accessor_of_objects_check { 211 method_accessor_of_objects_check {
212 params { 212 params {
213 @in a_in: accessor<Test.Object *> *; 213 @in a_in: accessor<Test.Object>;
214 } 214 }
215 return: accessor<Test.Object *> *; 215 return: accessor<Test.Object>;
216 } 216 }
217 method_accessor_of_strings_check { 217 method_accessor_of_strings_check {
218 params { 218 params {
219 @in a_in: accessor<const(char) *> *; 219 @in a_in: accessor<const(char) *>;
220 } 220 }
221 return: accessor<const(char) *> *; 221 return: accessor<const(char) *>;
222 } 222 }
223 method_accessor_of_ints_check { 223 method_accessor_of_ints_check {
224 params { 224 params {
225 @in a_in: accessor<int> *; 225 @in a_in: accessor<int>;
226 } 226 }
227 return: accessor<int> *; 227 return: accessor<int>;
228 } 228 }
229 method_accessor_of_bools_check { 229 method_accessor_of_bools_check {
230 params { 230 params {
231 @in a_in: accessor<bool> *; 231 @in a_in: accessor<bool>;
232 } 232 }
233 return: accessor<bool> *; 233 return: accessor<bool>;
234 } 234 }
235 method_accessor_of_doubles_check { 235 method_accessor_of_doubles_check {
236 params { 236 params {
237 @in a_in: accessor<double> *; 237 @in a_in: accessor<double>;
238 } 238 }
239 return: accessor<double> *; 239 return: accessor<double>;
240 } 240 }
241 method_accessor_of_enums_check { 241 method_accessor_of_enums_check {
242 params { 242 params {
243 @in a_in: accessor<Test.Enum_Ex> *; 243 @in a_in: accessor<Test.Enum_Ex>;
244 } 244 }
245 return: accessor<Test.Enum_Ex> *; 245 return: accessor<Test.Enum_Ex>;
246 } 246 }
247 method_accessor_of_structs_check { 247 method_accessor_of_structs_check {
248 params { 248 params {
249 @in a_in: accessor<Test.Struct_Ex> *; 249 @in a_in: accessor<Test.Struct_Ex>;
250 } 250 }
251 return: accessor<Test.Struct_Ex> *; 251 return: accessor<Test.Struct_Ex>;
252 } 252 }
253 method_iterator_of_objects_check { 253 method_iterator_of_objects_check {
254 params { 254 params {
255 @in i_in: iterator<Test.Object *> *; 255 @in i_in: iterator<Test.Object>;
256 } 256 }
257 return: iterator<Test.Object *> *; 257 return: iterator<Test.Object>;
258 } 258 }
259 method_iterator_of_strings_check { 259 method_iterator_of_strings_check {
260 params { 260 params {
261 @in i_in: iterator<const(char) *> *; 261 @in i_in: iterator<const(char) *>;
262 } 262 }
263 return: iterator<const(char) *> *; 263 return: iterator<const(char) *>;
264 } 264 }
265 method_iterator_of_ints_check { 265 method_iterator_of_ints_check {
266 params { 266 params {
267 @in i_in: iterator<int> *; 267 @in i_in: iterator<int>;
268 } 268 }
269 return: iterator<int> *; 269 return: iterator<int>;
270 } 270 }
271 method_iterator_of_bools_check { 271 method_iterator_of_bools_check {
272 params { 272 params {
273 @in i_in: iterator<bool> *; 273 @in i_in: iterator<bool>;
274 } 274 }
275 return: iterator<bool> *; 275 return: iterator<bool>;
276 } 276 }
277 method_iterator_of_doubles_check { 277 method_iterator_of_doubles_check {
278 params { 278 params {
279 @in i_in: iterator<double> *; 279 @in i_in: iterator<double>;
280 } 280 }
281 return: iterator<double> *; 281 return: iterator<double>;
282 } 282 }
283 method_iterator_of_enums_check { 283 method_iterator_of_enums_check {
284 params { 284 params {
285 @in i_in: iterator<Test.Enum_Ex> *; 285 @in i_in: iterator<Test.Enum_Ex>;
286 } 286 }
287 return: iterator<Test.Enum_Ex> *; 287 return: iterator<Test.Enum_Ex>;
288 } 288 }
289 method_iterator_of_structs_check { 289 method_iterator_of_structs_check {
290 params { 290 params {
291 @in i_in: iterator<Test.Struct_Ex> *; 291 @in i_in: iterator<Test.Struct_Ex>;
292 } 292 }
293 return: iterator<Test.Struct_Ex> *; 293 return: iterator<Test.Struct_Ex>;
294 } 294 }
295 method_array_of_arrays_of_ints_check { 295 method_array_of_arrays_of_ints_check {
296 params { 296 params {
297 @in a_in: array<array<int> *> *; 297 @in a_in: array<array<int> >;
298 } 298 }
299 return: array<array<int> *> *; 299 return: array<array<int> >;
300 } 300 }
301 method_list_of_lists_of_ints_check { 301 method_list_of_lists_of_ints_check {
302 params { 302 params {
303 @in l_in: list<list<int> *> *; 303 @in l_in: list<list<int> >;
304 } 304 }
305 return: list<list<int> *> *; 305 return: list<list<int> >;
306 } 306 }
307 method_array_of_lists_of_ints_check { 307 method_array_of_lists_of_ints_check {
308 params { 308 params {
309 @in a_in: array<list<int> *> *; 309 @in a_in: array<list<int> >;
310 } 310 }
311 return: array<list<int> *> *; 311 return: array<list<int> >;
312 } 312 }
313 method_list_of_arrays_of_ints_check { 313 method_list_of_arrays_of_ints_check {
314 params { 314 params {
315 @in l_in: list<array<int> *> *; 315 @in l_in: list<array<int> >;
316 } 316 }
317 return: list<array<int> *> *; 317 return: list<array<int> >;
318 } 318 }
319 method_list_with_opaque_elements_check { 319 method_list_with_opaque_elements_check {
320 return: const(list<Elm.Calendar.Mark*>)*; 320 return: const(list<Elm.Calendar.Mark*>);
321 } 321 }
322 method_in_enum_return_enum_check { 322 method_in_enum_return_enum_check {
323 params { e: Test.Enum_Ex; } 323 params { e: Test.Enum_Ex; }