Index: pkg/analyzer_plugin/tool/spec/from_html.dart |
diff --git a/pkg/analyzer_plugin/tool/spec/from_html.dart b/pkg/analyzer_plugin/tool/spec/from_html.dart |
index 11aa5ad4113431d52257a9f4abded777a8618ceb..8b5a97485e8ab2d2af63f98a9c6fcdd226e33f03 100644 |
--- a/pkg/analyzer_plugin/tool/spec/from_html.dart |
+++ b/pkg/analyzer_plugin/tool/spec/from_html.dart |
@@ -392,7 +392,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, { |
@@ -403,7 +405,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); |
} |
/** |