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

Unified Diff: pkg/intl/lib/src/date_format_field.dart

Issue 11099014: Small changes for spec updates/editor suggestions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « pkg/intl/lib/number_format.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/date_format_field.dart
===================================================================
--- pkg/intl/lib/src/date_format_field.dart (revision 13424)
+++ pkg/intl/lib/src/date_format_field.dart (working copy)
@@ -8,7 +8,7 @@
* fields would be "hh", ":", "mm", ":", and "ss". Each type of field knows
* how to format that portion of a date.
*/
-class _DateFormatField {
+abstract class _DateFormatField {
/** The format string that defines us, e.g. "hh" */
String pattern;
@@ -34,7 +34,8 @@
return pattern;
}
- abstract void parse(_Stream input, _DateBuilder dateFields);
+ /** Abstract method for subclasses to implementing parsing for their format.*/
+ void parse(_Stream input, _DateBuilder dateFields);
/** Parse a literal field. We just look for the exact input. */
void parseLiteral(_Stream input) {
« no previous file with comments | « pkg/intl/lib/number_format.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698