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

Unified Diff: pkg/args/lib/src/usage.dart

Issue 19810004: pkg/args: expose immutable collections (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: trying again Created 7 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 | « pkg/args/lib/src/parser.dart ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/lib/src/usage.dart
diff --git a/pkg/args/lib/src/usage.dart b/pkg/args/lib/src/usage.dart
index 45893a5e7c3030ead5602dfc9228f3615915f503..c3dd68eaab59d3b33170e04280ec270f49c9c0d4 100644
--- a/pkg/args/lib/src/usage.dart
+++ b/pkg/args/lib/src/usage.dart
@@ -144,13 +144,13 @@ class Usage {
columnWidths = [abbr, title];
}
- newline() {
+ void newline() {
newlinesNeeded++;
currentColumn = 0;
numHelpLines = 0;
}
- write(int column, String text) {
+ void write(int column, String text) {
var lines = text.split('\n');
// Strip leading and trailing empty lines.
@@ -167,7 +167,7 @@ class Usage {
}
}
- writeLine(int column, String text) {
+ void writeLine(int column, String text) {
// Write any pending newlines.
while (newlinesNeeded > 0) {
buffer.write('\n');
@@ -208,7 +208,7 @@ class Usage {
}
}
- buildAllowedList(Option option) {
+ String buildAllowedList(Option option) {
var allowedBuffer = new StringBuffer();
allowedBuffer.write('[');
bool first = true;
« no previous file with comments | « pkg/args/lib/src/parser.dart ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698