| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 * PrimitiveType(DOMString) | 58 * PrimitiveType(DOMString) |
| 59 * Error(Missing argument.) | 59 * Error(Missing argument.) |
| 60 * Type() | 60 * Type() |
| 61 * PrimitiveType(void) | 61 * PrimitiveType(void) |
| 62 */ | 62 */ |
| 63 interface MyIFaceMissingArgument { | 63 interface MyIFaceMissingArgument { |
| 64 void foo(DOMString arg, ); | 64 void foo(DOMString arg, ); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 /* TREE | 67 /* TREE |
| 68 *Error(Unexpected keyword "double" after keyword "readonly".) |
| 69 */ |
| 70 interface MyIFaceMissingAttribute { |
| 71 readonly double foo; |
| 72 }; |
| 73 |
| 74 /* TREE |
| 68 *Interface(MyIFaceBig) | 75 *Interface(MyIFaceBig) |
| 69 * Const(setString) | 76 * Const(setString) |
| 70 * PrimitiveType(DOMString) | 77 * PrimitiveType(DOMString) |
| 71 * Value(NULL) | 78 * Value(NULL) |
| 72 */ | 79 */ |
| 73 interface MyIFaceBig { | 80 interface MyIFaceBig { |
| 74 const DOMString? setString = null; | 81 const DOMString? setString = null; |
| 75 }; | 82 }; |
| 76 | 83 |
| 77 /* TREE | 84 /* TREE |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 * Type() | 299 * Type() |
| 293 * PrimitiveType(long) | 300 * PrimitiveType(long) |
| 294 * Setlike() | 301 * Setlike() |
| 295 * Type() | 302 * Type() |
| 296 * PrimitiveType(double) | 303 * PrimitiveType(double) |
| 297 */ | 304 */ |
| 298 interface MyIfaceSetlike { | 305 interface MyIfaceSetlike { |
| 299 readonly setlike<long>; | 306 readonly setlike<long>; |
| 300 setlike<double>; | 307 setlike<double>; |
| 301 }; | 308 }; |
| OLD | NEW |