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

Unified Diff: pkg/analysis_server/tool/spec/to_html.dart

Issue 1416093007: Experimental `getDiagnostics` request (#24480). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/tool/spec/spec_input.html ('k') | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/to_html.dart
diff --git a/pkg/analysis_server/tool/spec/to_html.dart b/pkg/analysis_server/tool/spec/to_html.dart
index 63f8bb6743bb6d46b185409cce8539fda8391988..2ccf00e21a9555cb53a1a2df3ee016f195ba64c6 100644
--- a/pkg/analysis_server/tool/spec/to_html.dart
+++ b/pkg/analysis_server/tool/spec/to_html.dart
@@ -388,7 +388,9 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
@override
void visitApi() {
- definedTypes = api.types.keys.toSet();
+ Iterable<TypeDefinition> apiTypes =
+ api.types.where((TypeDefinition td) => !td.experimental);
+ definedTypes = apiTypes.map((TypeDefinition td) => td.name).toSet();
html(() {
translateHtml(api.html);
@@ -491,6 +493,9 @@ class ToHtmlVisitor extends HierarchicalApiVisitor
@override
void visitTypeDefinition(TypeDefinition typeDefinition) {
+ if (typeDefinition.experimental) {
+ return;
+ }
dt('typeDefinition', () {
anchor('type_${typeDefinition.name}', () {
write('${typeDefinition.name}: ');
« no previous file with comments | « pkg/analysis_server/tool/spec/spec_input.html ('k') | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698