Index: lib/src/context.dart |
diff --git a/lib/src/context.dart b/lib/src/context.dart |
index c2fe48d0d17b618ff43702302659786ea75a1aee..0f03c83d97fa87381ee0f0b83e8c11cc37b31747 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,7 @@ 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]; |
Bob Nystrom
2015/03/27 22:05:41
This is *just* a bit too long now, so you'll have
vsm
2015/03/27 22:30:01
Done.
|
_validateArgList("join", parts); |
return joinAll(parts.where((part) => part != null)); |
} |