| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 * Value(123) | 69 * Value(123) |
| 70 * Const(longValue2) | 70 * Const(longValue2) |
| 71 * PrimitiveType(long long) | 71 * PrimitiveType(long long) |
| 72 * Value(123) | 72 * Value(123) |
| 73 * Attribute(myString) | 73 * Attribute(myString) |
| 74 * Type() | 74 * Type() |
| 75 * PrimitiveType(DOMString) | 75 * PrimitiveType(DOMString) |
| 76 * Attribute(readOnlyString) | 76 * Attribute(readOnlyString) |
| 77 * Type() | 77 * Type() |
| 78 * PrimitiveType(DOMString) | 78 * PrimitiveType(DOMString) |
| 79 * Attribute(staticString) |
| 80 * Type() |
| 81 * PrimitiveType(DOMString) |
| 79 * Operation(myFunction) | 82 * Operation(myFunction) |
| 80 * Type() | |
| 81 * PrimitiveType(void) | |
| 82 * Arguments() | 83 * Arguments() |
| 83 * Argument(myLong) | 84 * Argument(myLong) |
| 84 * Type() | 85 * Type() |
| 85 * PrimitiveType(long long) | 86 * PrimitiveType(long long) |
| 87 * Type() |
| 88 * PrimitiveType(void) |
| 89 * Operation(staticFunction) |
| 90 * Arguments() |
| 91 * Argument(myLong) |
| 92 * Type() |
| 93 * PrimitiveType(long long) |
| 94 * Type() |
| 95 * PrimitiveType(void) |
| 86 */ | 96 */ |
| 87 interface MyIFaceBig2 { | 97 interface MyIFaceBig2 { |
| 88 const DOMString? nullValue = null; | 98 const DOMString? nullValue = null; |
| 89 const long longValue = 123; | 99 const long longValue = 123; |
| 90 const long long longValue2 = 123; | 100 const long long longValue2 = 123; |
| 91 attribute DOMString myString; | 101 attribute DOMString myString; |
| 92 readonly attribute DOMString readOnlyString; | 102 readonly attribute DOMString readOnlyString; |
| 103 static attribute DOMString staticString; |
| 93 void myFunction(long long myLong); | 104 void myFunction(long long myLong); |
| 105 static void staticFunction(long long myLong); |
| 94 }; | 106 }; |
| 95 | 107 |
| 96 | 108 |
| 97 /* TREE | 109 /* TREE |
| 98 *Interface(MyIFaceSpecials) | 110 *Interface(MyIFaceSpecials) |
| 99 * Operation(set) | 111 * Operation(set) |
| 100 * Type() | |
| 101 * PrimitiveType(void) | |
| 102 * Arguments() | 112 * Arguments() |
| 103 * Argument(property) | 113 * Argument(property) |
| 104 * Type() | 114 * Type() |
| 105 * PrimitiveType(DOMString) | 115 * PrimitiveType(DOMString) |
| 116 * Type() |
| 117 * PrimitiveType(void) |
| 106 * Operation(_unnamed_) | 118 * Operation(_unnamed_) |
| 107 * Type() | |
| 108 * PrimitiveType(double) | |
| 109 * Arguments() | 119 * Arguments() |
| 110 * Argument(property) | 120 * Argument(property) |
| 111 * Type() | 121 * Type() |
| 112 * PrimitiveType(DOMString) | 122 * PrimitiveType(DOMString) |
| 123 * Type() |
| 124 * PrimitiveType(double) |
| 113 * Operation(GetFiveSix) | 125 * Operation(GetFiveSix) |
| 126 * Arguments() |
| 127 * Argument(arg) |
| 128 * Type() |
| 129 * Typeref(SomeType) |
| 114 * Type() | 130 * Type() |
| 115 * PrimitiveType(long long) | 131 * PrimitiveType(long long) |
| 116 * Array(5) | 132 * Array(5) |
| 117 * Array(6) | 133 * Array(6) |
| 118 * Arguments() | |
| 119 * Argument(arg) | |
| 120 * Type() | |
| 121 * Typeref(SomeType) | |
| 122 */ | 134 */ |
| 123 interface MyIFaceSpecials { | 135 interface MyIFaceSpecials { |
| 124 setter creator void set(DOMString property); | 136 setter creator void set(DOMString property); |
| 125 getter double (DOMString property); | 137 getter double (DOMString property); |
| 126 long long [5][6] GetFiveSix(SomeType arg); | 138 long long [5][6] GetFiveSix(SomeType arg); |
| 127 }; | 139 }; |
| OLD | NEW |