Skip to content

Commit

Permalink
Fix strong-mode warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Mar 24, 2016
1 parent 863c353 commit 7e74605
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .analysis_options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
analyzer:
strong-mode: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.10.1+1

* Fix all strong mode warnings.

## 0.10.1

* Add a `mapUrl` named argument to `parse` and `parseJson`. This argument is
Expand Down
6 changes: 3 additions & 3 deletions lib/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class SingleMapping extends Mapping {
var names = new LinkedHashMap<String, int>();

var lineNum;
var targetEntries;
List<TargetEntry> targetEntries;
for (var sourceEntry in sourceEntries) {
if (lineNum == null || sourceEntry.target.line > lineNum) {
lineNum = sourceEntry.target.line;
Expand Down Expand Up @@ -212,8 +212,8 @@ class SingleMapping extends Mapping {

SingleMapping.fromJson(Map map, {mapUrl})
: targetUrl = map['file'],
urls = map['sources'],
names = map['names'],
urls = new List<String>.from(map['sources']),
names = new List<String>.from(map['names']),
sourceRoot = map['sourceRoot'],
lines = <TargetLineEntry>[],
_mapUrl = mapUrl is String ? Uri.parse(mapUrl) : mapUrl {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: source_maps
version: 0.10.2-dev
version: 0.10.1+1
author: Dart Team <[email protected]>
description: Library to programmatically manipulate source map files.
homepage: http://github.com/dart-lang/source_maps
Expand Down

0 comments on commit 7e74605

Please sign in to comment.