Fix issue for windows creating a corrupt URI (#675)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 027dba4..cc26d99 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## Unpublished
+
+- Fixed an issue where a corrupt URI would crash the plugin on windows.
+
## 0.0.17+4
- Refactored how non-angular expressions (`new`, `+=`, `..`, etc.) are detected.
diff --git a/angular_analyzer_plugin/lib/src/view_extraction.dart b/angular_analyzer_plugin/lib/src/view_extraction.dart
index 2d42c8a..63583a6 100644
--- a/angular_analyzer_plugin/lib/src/view_extraction.dart
+++ b/angular_analyzer_plugin/lib/src/view_extraction.dart
@@ -58,7 +58,7 @@
final exceptionHandler = new ng_ast.RecoveringExceptionHandler();
rawAst = ng_ast.parse(
content,
- sourceUrl: source.toString(),
+ sourceUrl: source.uri.toString(),
desugar: false,
parseExpressions: false,
exceptionHandler: exceptionHandler,