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

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

Issue 1419793004: Doc generator tweak to skip experimental domains. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Master merge. Created 5 years, 1 month 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 | « no previous file | pkg/analysis_server/tool/spec/from_html.dart » ('j') | 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 * Data structures representing an API definition, and visitor base classes 6 * Data structures representing an API definition, and visitor base classes
7 * for visiting those data structures. 7 * for visiting those data structures.
8 */ 8 */
9 library api; 9 library api;
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 T visitTypeReference(TypeReference typeReference); 53 T visitTypeReference(TypeReference typeReference);
54 54
55 T visitTypeUnion(TypeUnion typeUnion); 55 T visitTypeUnion(TypeUnion typeUnion);
56 } 56 }
57 57
58 /** 58 /**
59 * Definition of a single domain. 59 * Definition of a single domain.
60 */ 60 */
61 class Domain extends ApiNode { 61 class Domain extends ApiNode {
62 final String name; 62 final String name;
63 final bool experimental;
63 final List<Request> requests; 64 final List<Request> requests;
64 final List<Notification> notifications; 65 final List<Notification> notifications;
65 66
66 Domain(this.name, this.requests, this.notifications, dom.Element html) 67 Domain(this.name, this.experimental, this.requests, this.notifications,
68 dom.Element html)
67 : super(html); 69 : super(html);
68 } 70 }
69 71
70 /** 72 /**
71 * API visitor that visits the entire API hierarchically by default. 73 * API visitor that visits the entire API hierarchically by default.
72 */ 74 */
73 class HierarchicalApiVisitor extends ApiVisitor { 75 class HierarchicalApiVisitor extends ApiVisitor {
74 /** 76 /**
75 * The API to visit. 77 * The API to visit.
76 */ 78 */
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 482
481 /** 483 /**
482 * The field that is used to disambiguate this union 484 * The field that is used to disambiguate this union
483 */ 485 */
484 final String field; 486 final String field;
485 487
486 TypeUnion(this.choices, this.field, dom.Element html) : super(html); 488 TypeUnion(this.choices, this.field, dom.Element html) : super(html);
487 489
488 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this); 490 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this);
489 } 491 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/from_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698