Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Revert the revert of the flow analysis workaround (#61)
Browse files Browse the repository at this point in the history
* Revert "Prep to release 1.8.0-nullsafety.1"

This reverts commit 17f16a8.

* update pubspec/changelog
  • Loading branch information
jakemac53 authored Sep 21, 2020
1 parent 17f16a8 commit 98346c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: dart

dart:
- be/raw/latest
- dev

jobs:
include:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.8.0-nullsafety.2-dev

* Revert unnecessary null check fix (sdk fix wont land in 2.10 stable).

# 1.8.0-nullsafety.1

* Fixes a newly recognized unnecessary null check to remove warnings.
Expand Down
4 changes: 3 additions & 1 deletion lib/src/highlighter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ class Highlighter {
? _primaryColor
: _secondaryColor;
var foundCurrent = false;
for (var highlight in highlightsByColumn) {
for (var tmp in highlightsByColumn) {
// Work around https://github.com/dart-lang/sdk/issues/43136
final highlight = tmp;
final startLine = highlight?.span.start.line;
final endLine = highlight?.span.end.line;
if (current != null && highlight == current) {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: source_span
version: 1.8.0-nullsafety.1
version: 1.8.0-nullsafety.2-dev

description: A library for identifying source spans and locations.
homepage: https://github.com/dart-lang/source_span

environment:
# This must remain a tight constraint until nnbd is stable
sdk: '>=2.10.0-137.0 <2.10.0'
sdk: '>=2.10.0-0.0 <2.10.0'

dependencies:
charcode: '>=1.2.0-nullsafety <1.2.0'
Expand Down

0 comments on commit 98346c3

Please sign in to comment.