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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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 reading an HTML API description. 6 * Code for reading an HTML API description.
7 */ 7 */
8 library from.html;
9
10 import 'dart:io'; 8 import 'dart:io';
11 9
12 import 'package:analyzer/src/codegen/html.dart'; 10 import 'package:analyzer/src/codegen/html.dart';
13 import 'package:html/dom.dart' as dom; 11 import 'package:html/dom.dart' as dom;
14 import 'package:html/parser.dart' as parser; 12 import 'package:html/parser.dart' as parser;
15 import 'package:path/path.dart'; 13 import 'package:path/path.dart';
16 14
17 import 'api.dart'; 15 import 'api.dart';
18 16
19 const List<String> specialElements = const [ 17 const List<String> specialElements = const [
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 TypeDefinition typeDefinition = typeDefinitionFromHtml(child); 552 TypeDefinition typeDefinition = typeDefinitionFromHtml(child);
555 types[typeDefinition.name] = typeDefinition; 553 types[typeDefinition.name] = typeDefinition;
556 } 554 }
557 }); 555 });
558 return new Types(types, html); 556 return new Types(types, html);
559 } 557 }
560 558
561 typedef void ElementProcessor(dom.Element element); 559 typedef void ElementProcessor(dom.Element element);
562 560
563 typedef void TextProcessor(dom.Text text); 561 typedef void TextProcessor(dom.Text text);
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_matchers.dart ('k') | pkg/analysis_server/tool/spec/generate_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698