Index: pkg/analysis_server/tool/spec/from_html.dart |
diff --git a/pkg/analysis_server/tool/spec/from_html.dart b/pkg/analysis_server/tool/spec/from_html.dart |
index 671b1245a71103ef442eff59a3e5c6d346904f7d..b2caf4bd1b49c5b7004b7c1eb90b6c5d0051bb95 100644 |
--- a/pkg/analysis_server/tool/spec/from_html.dart |
+++ b/pkg/analysis_server/tool/spec/from_html.dart |
@@ -394,7 +394,9 @@ Request requestFromHtml(dom.Element html, String context) { |
checkName(html, 'request', context); |
String method = html.attributes['method']; |
context = '$context.${method != null ? method : 'method'}'; |
- checkAttributes(html, ['method'], context); |
+ checkAttributes(html, ['method'], context, |
+ optionalAttributes: ['experimental']); |
+ bool experimental = html.attributes['experimental'] == 'true'; |
TypeDecl params; |
TypeDecl result; |
recurse(html, context, { |
@@ -405,7 +407,8 @@ Request requestFromHtml(dom.Element html, String context) { |
result = typeObjectFromHtml(child, '$context.result'); |
} |
}); |
- return new Request(domainName, method, params, result, html); |
+ return new Request(domainName, method, params, result, html, |
+ experimental: experimental); |
} |
/** |