Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: lib/parser.dart

Issue 1826093002: Fix strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/source_maps@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/parser.dart
diff --git a/lib/parser.dart b/lib/parser.dart
index a9fcff57840ec6d4cef109b24770db20c16a9440..b659654f04693f1b339472675699b95fe604381f 100644
--- a/lib/parser.dart
+++ b/lib/parser.dart
@@ -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;
@@ -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 {
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698