Chromium Code Reviews| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 * ExtAttribute(MethodIdentList) | 174 * ExtAttribute(MethodIdentList) |
| 175 * ExtAttributes() | 175 * ExtAttributes() |
| 176 * ExtAttribute(MyExtendedAttribute) | 176 * ExtAttribute(MyExtendedAttribute) |
| 177 * ExtAttribute(MyExtendedIdentListAttribute) | 177 * ExtAttribute(MyExtendedIdentListAttribute) |
| 178 */ | 178 */ |
| 179 [MyExtendedAttribute, | 179 [MyExtendedAttribute, |
| 180 MyExtendedIdentListAttribute=(Foo, Bar, Baz)] | 180 MyExtendedIdentListAttribute=(Foo, Bar, Baz)] |
| 181 interface MyExtendedAttributeInterface { | 181 interface MyExtendedAttributeInterface { |
| 182 [Attr, MethodIdentList=(Foo, Bar)] void method(); | 182 [Attr, MethodIdentList=(Foo, Bar)] void method(); |
| 183 }; | 183 }; |
| 184 | |
| 185 /* TREE | |
| 186 *Interface(MyIfacePromise) | |
| 187 * Operation(method1) | |
| 188 * Arguments() | |
| 189 * Type() | |
| 190 * Promise(Promise) | |
|
noelallen1
2014/10/15 18:12:32
Shouldn't this be Promise(void) or
Promise()
yhirano
2014/10/16 05:25:47
Done.
| |
| 191 * Operation(method2) | |
| 192 * Arguments() | |
| 193 * Type() | |
| 194 * Promise(Promise) | |
| 195 * Operation(method3) | |
| 196 * Arguments() | |
| 197 * Type() | |
| 198 * Promise(Promise) | |
| 199 */ | |
| 200 interface MyIfacePromise { | |
| 201 Promise<void> method1(); | |
| 202 Promise<long> method2(); | |
| 203 Promise method3(); | |
| 204 }; | |
| OLD | NEW |