Index: lib/src/utils.dart |
diff --git a/lib/src/utils.dart b/lib/src/utils.dart |
index 60c6d491386c00394db6751c7bfd16fe1199a723..ba0e0354a79b51e80256207403339ef1a8362e05 100644 |
--- a/lib/src/utils.dart |
+++ b/lib/src/utils.dart |
@@ -433,6 +433,11 @@ SourceSpanWithContext createSpan( |
[Source source]) { |
if (source == null) source = unit.element.source; |
var content = context.getContents(source).data; |
+ return createSpanHelper(unit, start, end, source, content); |
+} |
+ |
+SourceSpanWithContext createSpanHelper( |
+ CompilationUnit unit, int start, int end, Source source, String content) { |
var startLoc = locationForOffset(unit, source.uri, start); |
var endLoc = locationForOffset(unit, source.uri, end); |