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:html/dom.dart' as dom; | 9 import 'package:html/dom.dart' as dom; |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 'SourceChange': const ['edits', 'linkedEditGroups'], | 64 'SourceChange': const ['edits', 'linkedEditGroups'], |
65 'SourceFileEdit': const ['edits'], | 65 'SourceFileEdit': const ['edits'], |
66 'TypeHierarchyItem': const ['interfaces', 'mixins', 'subclasses'], | 66 'TypeHierarchyItem': const ['interfaces', 'mixins', 'subclasses'], |
67 }; | 67 }; |
68 | 68 |
69 /** | 69 /** |
70 * The disclaimer added to the documentation comment for each of the classes | 70 * The disclaimer added to the documentation comment for each of the classes |
71 * that are generated. | 71 * that are generated. |
72 */ | 72 */ |
73 static const String disclaimer = | 73 static const String disclaimer = |
74 'Clients are not expected to subtype this class.'; | 74 'Clients may not extend, implement or mix-in this class.'; |
75 | 75 |
76 /** | 76 /** |
77 * Visitor used to produce doc comments. | 77 * Visitor used to produce doc comments. |
78 */ | 78 */ |
79 final ToHtmlVisitor toHtmlVisitor; | 79 final ToHtmlVisitor toHtmlVisitor; |
80 | 80 |
81 /** | 81 /** |
82 * Types implied by the API. This includes types explicitly named in the | 82 * Types implied by the API. This includes types explicitly named in the |
83 * API as well as those implied by the definitions of requests, responses, | 83 * API as well as those implied by the definitions of requests, responses, |
84 * notifications, etc. | 84 * notifications, etc. |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 | 1240 |
1241 @override | 1241 @override |
1242 String get asClosure => '($type value) => ${callback('value')}'; | 1242 String get asClosure => '($type value) => ${callback('value')}'; |
1243 | 1243 |
1244 @override | 1244 @override |
1245 bool get isIdentity => false; | 1245 bool get isIdentity => false; |
1246 | 1246 |
1247 @override | 1247 @override |
1248 String asSnippet(String value) => callback(value); | 1248 String asSnippet(String value) => callback(value); |
1249 } | 1249 } |
OLD | NEW |