| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 * Type() | 316 * Type() |
| 317 * PrimitiveType(long) | 317 * PrimitiveType(long) |
| 318 * Setlike() | 318 * Setlike() |
| 319 * Type() | 319 * Type() |
| 320 * PrimitiveType(double) | 320 * PrimitiveType(double) |
| 321 */ | 321 */ |
| 322 interface MyIfaceSetlike { | 322 interface MyIfaceSetlike { |
| 323 readonly setlike<long>; | 323 readonly setlike<long>; |
| 324 setlike<double>; | 324 setlike<double>; |
| 325 }; | 325 }; |
| 326 |
| 327 /* TREE |
| 328 *Interface(MyIfaceSerializer) |
| 329 * Serializer() |
| 330 * Serializer() |
| 331 * Operation(toJSON) |
| 332 * Arguments() |
| 333 * Type() |
| 334 * Any() |
| 335 * Serializer() |
| 336 * Serializer() |
| 337 * Map() |
| 338 * Serializer() |
| 339 * Map() |
| 340 * Serializer() |
| 341 * Map() |
| 342 * Serializer() |
| 343 * Map() |
| 344 * Serializer() |
| 345 * Map() |
| 346 * Serializer() |
| 347 * Map() |
| 348 * Serializer() |
| 349 * Map() |
| 350 * Serializer() |
| 351 * List() |
| 352 * Serializer() |
| 353 * List() |
| 354 * Serializer() |
| 355 * List() |
| 356 */ |
| 357 interface MyIfaceSerializer { |
| 358 serializer; |
| 359 serializer any toJSON(); |
| 360 serializer = name; |
| 361 serializer = {}; |
| 362 serializer = { getter }; |
| 363 serializer = { attribute }; |
| 364 serializer = { inherit, attribute }; |
| 365 serializer = { inherit }; |
| 366 serializer = { inherit, name1, name2 }; |
| 367 serializer = { name1, name2 }; |
| 368 serializer = []; |
| 369 serializer = [getter]; |
| 370 serializer = [name1, name2]; |
| 371 }; |
| OLD | NEW |