OLD | NEW |
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. */ | 3 found in the LICENSE file. */ |
4 | 4 |
5 /* Test Interface productions | 5 /* Test Interface productions |
6 | 6 |
7 Run with --test to generate an AST and verify that all comments accurately | 7 Run with --test to generate an AST and verify that all comments accurately |
8 reflect the state of the Nodes. | 8 reflect the state of the Nodes. |
9 | 9 |
10 BUILD Type(Name) | 10 BUILD Type(Name) |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 * Promise(Promise) | 223 * Promise(Promise) |
224 * Type() | 224 * Type() |
225 * Any() | 225 * Any() |
226 */ | 226 */ |
227 interface MyIfacePromise { | 227 interface MyIfacePromise { |
228 Promise<void> method1(); | 228 Promise<void> method1(); |
229 Promise<long> method2(); | 229 Promise<long> method2(); |
230 Promise<any> method3(); | 230 Promise<any> method3(); |
231 Promise method4(); | 231 Promise method4(); |
232 }; | 232 }; |
| 233 |
| 234 /* TREE |
| 235 *Interface(MyIfaceIterable) |
| 236 * Iterable() |
| 237 * Type() |
| 238 * PrimitiveType(long) |
| 239 * Iterable() |
| 240 * Type() |
| 241 * PrimitiveType(double) |
| 242 * Type() |
| 243 * PrimitiveType(DOMString) |
| 244 * LegacyIterable() |
| 245 * Type() |
| 246 * PrimitiveType(boolean) |
| 247 */ |
| 248 interface MyIfaceIterable { |
| 249 iterable<long>; |
| 250 iterable<double, DOMString>; |
| 251 legacyiterable<boolean>; |
| 252 }; |
| 253 |
| 254 /* TREE |
| 255 *Interface(MyIfaceMaplike) |
| 256 * Maplike() |
| 257 * Type() |
| 258 * PrimitiveType(long) |
| 259 * Type() |
| 260 * PrimitiveType(DOMString) |
| 261 * Maplike() |
| 262 * Type() |
| 263 * PrimitiveType(double) |
| 264 * Type() |
| 265 * PrimitiveType(boolean) |
| 266 */ |
| 267 interface MyIfaceMaplike { |
| 268 readonly maplike<long, DOMString>; |
| 269 maplike<double, boolean>; |
| 270 }; |
| 271 |
| 272 /* TREE |
| 273 *Interface(MyIfaceSetlike) |
| 274 * Setlike() |
| 275 * Type() |
| 276 * PrimitiveType(long) |
| 277 * Setlike() |
| 278 * Type() |
| 279 * PrimitiveType(double) |
| 280 */ |
| 281 interface MyIfaceSetlike { |
| 282 readonly setlike<long>; |
| 283 setlike<double>; |
| 284 }; |
OLD | NEW |