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

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

Issue 1842063003: Start making server strong mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unintended change Created 4 years, 8 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
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 library to.html; 10 library to.html;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 * Set of types defined in the API. 165 * Set of types defined in the API.
166 */ 166 */
167 Set<String> definedTypes = new Set<String>(); 167 Set<String> definedTypes = new Set<String>();
168 168
169 /** 169 /**
170 * Mappings from HTML elements to API nodes. 170 * Mappings from HTML elements to API nodes.
171 */ 171 */
172 ApiMappings apiMappings; 172 ApiMappings apiMappings;
173 173
174 ToHtmlVisitor(Api api) 174 ToHtmlVisitor(Api api)
175 : super(api), 175 : apiMappings = new ApiMappings(api),
176 apiMappings = new ApiMappings(api) { 176 super(api) {
177 apiMappings.visitApi(); 177 apiMappings.visitApi();
178 } 178 }
179 179
180 /** 180 /**
181 * Describe the payload of request, response, notification, refactoring 181 * Describe the payload of request, response, notification, refactoring
182 * feedback, or refactoring options. 182 * feedback, or refactoring options.
183 * 183 *
184 * If [force] is true, then a section is inserted even if the payload is 184 * If [force] is true, then a section is inserted even if the payload is
185 * null. 185 * null.
186 */ 186 */
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 bool verticalBarNeeded = false; 709 bool verticalBarNeeded = false;
710 for (TypeDecl choice in typeUnion.choices) { 710 for (TypeDecl choice in typeUnion.choices) {
711 if (verticalBarNeeded) { 711 if (verticalBarNeeded) {
712 write(' | '); 712 write(' | ');
713 } 713 }
714 visitTypeDecl(choice); 714 visitTypeDecl(choice);
715 verticalBarNeeded = true; 715 verticalBarNeeded = true;
716 } 716 }
717 } 717 }
718 } 718 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698