Skip to content

Commit

Permalink
fix formatting (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Aug 1, 2021
1 parent 6248970 commit a055256
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bin/src/debug_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ validateSize(AllInfo info, String debugLibName) {
info.accept(tracker);

// Validate that listed elements include elements of each library.
Set<Info> listed = new Set()..addAll(info.functions)..addAll(info.fields);
Set<Info> listed = new Set()
..addAll(info.functions)
..addAll(info.fields);
// For our sanity we do some validation of dump-info invariants
var diff1 = listed.difference(tracker.discovered);
var diff2 = tracker.discovered.difference(listed);
Expand Down Expand Up @@ -302,7 +304,9 @@ verifyDeps(AllInfo info) {
var entrypoint = info.program.entrypoint;
var reachables = new Set.from(graph.preOrder(entrypoint));

var functionsAndFields = []..addAll(info.functions)..addAll(info.fields);
var functionsAndFields = []
..addAll(info.functions)
..addAll(info.fields);
var unreachables =
functionsAndFields.where((func) => !reachables.contains(func));
if (unreachables.isNotEmpty) {
Expand Down
2 changes: 1 addition & 1 deletion lib/json_info_codec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class AllInfoToJsonConverter extends Converter<AllInfo, Map>
map[idFor(info).serializedId] = info.uses
.map(_visitDependencyInfo)
.toList()
..sort((a, b) => a['id'].compareTo(b['id']));
..sort((a, b) => a['id'].compareTo(b['id']));
}

allInfo.functions.forEach(helper);
Expand Down

0 comments on commit a055256

Please sign in to comment.