fix(transformers): fix sort order for reflective imports

Fix sort order for reflective imports in reflection_remover/rewriter.dart.
Currently there is only one import so the sort order happens to be correct,
but if another one is added the rewrite code will break.
This commit is contained in:
Ted Sander 2015-07-16 19:13:50 -07:00
parent 5b597de18c
commit 762a94f2cd
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Rewriter {
return _code;
}
var compare = (AstNode a, AstNode b) => b.offset - a.offset;
var compare = (AstNode a, AstNode b) => a.offset - b.offset;
visitor.reflectionCapabilityImports.sort(compare);
visitor.reflectionCapabilityAssignments.sort(compare);