OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Code for displaying the API as HTML. This is used both for generating a | 6 * Code for displaying the API as HTML. This is used both for generating a |
7 * full description of the API as a web page, and for generating doc comments | 7 * full description of the API as a web page, and for generating doc comments |
8 * in generated code. | 8 * in generated code. |
9 */ | 9 */ |
10 import 'dart:convert'; | 10 import 'dart:convert'; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 write('Notifications'); | 533 write('Notifications'); |
534 }); | 534 }); |
535 dl(() { | 535 dl(() { |
536 domain.notifications.forEach(visitNotification); | 536 domain.notifications.forEach(visitNotification); |
537 }); | 537 }); |
538 } | 538 } |
539 } | 539 } |
540 | 540 |
541 @override | 541 @override |
542 void visitNotification(Notification notification) { | 542 void visitNotification(Notification notification) { |
| 543 if (notification.experimental) { |
| 544 return; |
| 545 } |
543 dt('notification', () { | 546 dt('notification', () { |
544 anchor('notification_${notification.longEvent}', () { | 547 anchor('notification_${notification.longEvent}', () { |
545 write(notification.longEvent); | 548 write(notification.longEvent); |
546 }); | 549 }); |
547 }); | 550 }); |
548 dd(() { | 551 dd(() { |
549 box(() { | 552 box(() { |
550 showType( | 553 showType( |
551 'notification', notification.notificationType, notification.params); | 554 'notification', notification.notificationType, notification.params); |
552 }); | 555 }); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 bool verticalBarNeeded = false; | 822 bool verticalBarNeeded = false; |
820 for (TypeDecl choice in typeUnion.choices) { | 823 for (TypeDecl choice in typeUnion.choices) { |
821 if (verticalBarNeeded) { | 824 if (verticalBarNeeded) { |
822 write(' | '); | 825 write(' | '); |
823 } | 826 } |
824 visitTypeDecl(choice); | 827 visitTypeDecl(choice); |
825 verticalBarNeeded = true; | 828 verticalBarNeeded = true; |
826 } | 829 } |
827 } | 830 } |
828 } | 831 } |
OLD | NEW |