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

Unified Diff: pkg/analyzer_plugin/tool/spec/from_html.dart

Issue 2787703003: Apply changes made to server spec generator (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer_plugin/tool/spec/to_html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
/**
« no previous file with comments | « no previous file | pkg/analyzer_plugin/tool/spec/to_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698