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

Unified Diff: lib/src/scan.dart

Issue 2993483002: Update comment style generic syntax (Closed)
Patch Set: format file Created 3 years, 5 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 | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/scan.dart
diff --git a/lib/src/scan.dart b/lib/src/scan.dart
index 6ba7a725fb898c0480ea2e41776045d3222b5184..32310725f56245a05acf5e6e88ff051f3ecdce11 100644
--- a/lib/src/scan.dart
+++ b/lib/src/scan.dart
@@ -10,6 +10,13 @@
///
/// [spec]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html
import 'package:string_scanner/string_scanner.dart';
+/// HTTP entities.
+///
+/// Many of the regular expressions come from [section 2.2 of the HTTP
+/// spec][spec].
+///
+/// [spec]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html
+
/// An HTTP token.
final token = new RegExp(r'[^()<>@,;:"\\/[\]?={} \t\x00-\x1F\x7F]+');
@@ -37,8 +44,8 @@ final whitespace = new RegExp("(?:${_lws.pattern})*");
///
/// Once this is finished, [scanner] will be at the next non-LWS character in
/// the string, or the end of the string.
-List/*<T>*/ parseList/*<T>*/(StringScanner scanner, /*=T*/ parseElement()) {
- var result = /*<T>*/ [];
+List<T> parseList<T>(StringScanner scanner, T parseElement()) {
+ var result = <T>[];
// Consume initial empty values.
while (scanner.scan(",")) {
« no previous file with comments | « no previous file | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698