| OLD | NEW |
| 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 library codegen.protocol; | 5 library codegen.protocol; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:html5lib/dom.dart' as dom; | 9 import 'package:html/dom.dart' as dom; |
| 10 | 10 |
| 11 import 'api.dart'; | 11 import 'api.dart'; |
| 12 import 'codegen_dart.dart'; | 12 import 'codegen_dart.dart'; |
| 13 import 'codegen_tools.dart'; | 13 import 'codegen_tools.dart'; |
| 14 import 'from_html.dart'; | 14 import 'from_html.dart'; |
| 15 import 'implied_types.dart'; | 15 import 'implied_types.dart'; |
| 16 import 'to_html.dart'; | 16 import 'to_html.dart'; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Translate spec_input.html into protocol_matchers.dart. | 19 * Translate spec_input.html into protocol_matchers.dart. |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 | 1223 |
| 1224 @override | 1224 @override |
| 1225 String get asClosure => '($type value) => ${callback('value')}'; | 1225 String get asClosure => '($type value) => ${callback('value')}'; |
| 1226 | 1226 |
| 1227 @override | 1227 @override |
| 1228 bool get isIdentity => false; | 1228 bool get isIdentity => false; |
| 1229 | 1229 |
| 1230 @override | 1230 @override |
| 1231 String asSnippet(String value) => callback(value); | 1231 String asSnippet(String value) => callback(value); |
| 1232 } | 1232 } |
| OLD | NEW |