Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: pkg/analysis_server/tool/spec/to_html.dart

Issue 3002543002: Support experimental annotations for the analysis server spec. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/tool/spec/spec_input.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/spec_input.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698