angular/di.dart — pull request #32 by appajee (2013-12-16 18:37:36+00:00)
Title: On Windows, possible RangeException due to os-specific file separator

While running angular.dart.tutorial Chapter_07 generator step (https://github.com/angular/angular.dart.tutorial/tree/master/Chapter_07), I ran into this issue, not sure if this is specific to my environment; but doing the above changes fixed the issue. Without this change, was running into RangeException running the generator in Dart Editor, Windows Command line, or, cygwin, or, Git shell (even though, the later two indeed have file separator as '/').