| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 /* TREE | 67 /* TREE |
| 68 *Error(Unexpected keyword "double" after keyword "readonly".) | 68 *Error(Unexpected keyword "double" after keyword "readonly".) |
| 69 */ | 69 */ |
| 70 interface MyIFaceMissingAttribute { | 70 interface MyIFaceMissingAttribute { |
| 71 readonly double foo; | 71 readonly double foo; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 /* TREE | 74 /* TREE |
| 75 *Interface(MyIFaceContainsUnresolvedConflictDiff) |
| 76 * Operation(foo) |
| 77 * Arguments() |
| 78 * Type() |
| 79 * PrimitiveType(DOMString) |
| 80 * Error(Unexpected "<" after ";".) |
| 81 */ |
| 82 interface MyIFaceContainsUnresolvedConflictDiff { |
| 83 DOMString foo(); |
| 84 <<<<<< ours |
| 85 DOMString bar(); |
| 86 iterable<long>; |
| 87 ====== |
| 88 >>>>>> theirs |
| 89 }; |
| 90 |
| 91 /* TREE |
| 75 *Interface(MyIFaceBig) | 92 *Interface(MyIFaceBig) |
| 76 * Const(setString) | 93 * Const(setString) |
| 77 * PrimitiveType(DOMString) | 94 * PrimitiveType(DOMString) |
| 78 * Value(NULL) | 95 * Value(NULL) |
| 79 */ | 96 */ |
| 80 interface MyIFaceBig { | 97 interface MyIFaceBig { |
| 81 const DOMString? setString = null; | 98 const DOMString? setString = null; |
| 82 }; | 99 }; |
| 83 | 100 |
| 84 /* TREE | 101 /* TREE |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 * Type() | 316 * Type() |
| 300 * PrimitiveType(long) | 317 * PrimitiveType(long) |
| 301 * Setlike() | 318 * Setlike() |
| 302 * Type() | 319 * Type() |
| 303 * PrimitiveType(double) | 320 * PrimitiveType(double) |
| 304 */ | 321 */ |
| 305 interface MyIfaceSetlike { | 322 interface MyIfaceSetlike { |
| 306 readonly setlike<long>; | 323 readonly setlike<long>; |
| 307 setlike<double>; | 324 setlike<double>; |
| 308 }; | 325 }; |
| OLD | NEW |