Skip to content

Commit 672ee0a

Browse files
authored
Merge pull request flutter#9 from dart-lang/fix-strong-mode-errors
Fix strong mode errors
2 parents 202b0ef + 35ef33f commit 672ee0a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.4
2+
3+
* Fix a new strong mode error.
4+
15
# 1.2.3
26

37
* Fix a bug where a point span at the end of a file without a trailing newline

lib/src/span_mixin.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class SourceSpanMixin implements SourceSpan {
6060
if (length == 0 && this is! SourceSpanWithContext) return buffer.toString();
6161
buffer.write("\n");
6262

63-
var textLine;
63+
String textLine;
6464
if (this is SourceSpanWithContext) {
6565
var context = (this as SourceSpanWithContext).context;
6666
var lineStart = findLineStart(context, text, column);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_span
2-
version: 1.2.3
2+
version: 1.2.4
33
author: Dart Team <[email protected]>
44
description: A library for identifying source spans and locations.
55
homepage: https://github.com/dart-lang/source_span

0 commit comments

Comments
 (0)