| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   43  |   43  | 
|   44 /* TREE |   44 /* TREE | 
|   45  *Interface(MyIFacePartial) |   45  *Interface(MyIFacePartial) | 
|   46  */ |   46  */ | 
|   47 partial interface MyIFacePartial { }; |   47 partial interface MyIFacePartial { }; | 
|   48  |   48  | 
|   49 /* ERROR Unexpected ":" after identifier "MyIFaceInherit". */ |   49 /* ERROR Unexpected ":" after identifier "MyIFaceInherit". */ | 
|   50 partial interface MyIFaceInherit : Foo {}; |   50 partial interface MyIFaceInherit : Foo {}; | 
|   51  |   51  | 
|   52 /* TREE |   52 /* TREE | 
 |   53  *Interface(MyIFaceMissingArgument) | 
 |   54  *  Operation(foo) | 
 |   55  *    Arguments() | 
 |   56  *      Argument(arg) | 
 |   57  *        Type() | 
 |   58  *          PrimitiveType(DOMString) | 
 |   59  *      Error(Missing argument.) | 
 |   60  *    Type() | 
 |   61  *      PrimitiveType(void) | 
 |   62  */ | 
 |   63 interface MyIFaceMissingArgument { | 
 |   64   void foo(DOMString arg, ); | 
 |   65 }; | 
 |   66  | 
 |   67 /* TREE | 
|   53  *Interface(MyIFaceBig) |   68  *Interface(MyIFaceBig) | 
|   54  *  Const(setString) |   69  *  Const(setString) | 
|   55  *    PrimitiveType(DOMString) |   70  *    PrimitiveType(DOMString) | 
|   56  *    Value(NULL) |   71  *    Value(NULL) | 
|   57  */ |   72  */ | 
|   58 interface MyIFaceBig { |   73 interface MyIFaceBig { | 
|   59   const DOMString? setString = null; |   74   const DOMString? setString = null; | 
|   60 }; |   75 }; | 
|   61  |   76  | 
|   62 /* TREE |   77 /* TREE | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  208  *      Promise(Promise) |  223  *      Promise(Promise) | 
|  209  *        Type() |  224  *        Type() | 
|  210  *          Any() |  225  *          Any() | 
|  211  */ |  226  */ | 
|  212 interface MyIfacePromise { |  227 interface MyIfacePromise { | 
|  213   Promise<void> method1(); |  228   Promise<void> method1(); | 
|  214   Promise<long> method2(); |  229   Promise<long> method2(); | 
|  215   Promise<any> method3(); |  230   Promise<any> method3(); | 
|  216   Promise method4(); |  231   Promise method4(); | 
|  217 }; |  232 }; | 
| OLD | NEW |