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:
parent
5b597de18c
commit
762a94f2cd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue