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

Unified Diff: lib/src/context.dart

Issue 1038063002: DDC fixes for path (Closed) Base URL: https://github.com/dart-lang/path.git@master
Patch Set: Fix formatting Created 5 years, 9 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 | « CHANGELOG.md ('k') | lib/src/parsed_path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/context.dart
diff --git a/lib/src/context.dart b/lib/src/context.dart
index c2fe48d0d17b618ff43702302659786ea75a1aee..db055a19b1a6ed54767ca40974d2aff6f8b93cb0 100644
--- a/lib/src/context.dart
+++ b/lib/src/context.dart
@@ -40,12 +40,12 @@ class Context {
"allowed.");
}
- return new Context._(style, current);
+ return new Context._(style as InternalStyle, current);
}
/// Create a [Context] to be used internally within path.
Context._internal()
- : style = Style.platform,
+ : style = Style.platform as InternalStyle,
_current = null;
Context._(this.style, this._current);
@@ -197,7 +197,16 @@ class Context {
///
String join(String part1, [String part2, String part3, String part4,
String part5, String part6, String part7, String part8]) {
- var parts = [part1, part2, part3, part4, part5, part6, part7, part8];
+ var parts = <String>[
+ part1,
+ part2,
+ part3,
+ part4,
+ part5,
+ part6,
+ part7,
+ part8
+ ];
_validateArgList("join", parts);
return joinAll(parts.where((part) => part != null));
}
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/parsed_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698