fix(transformer): Put paramater data in the same order as the reflected version.

Previously it would be [@Inject(#thing), Thing], but it should be [Thing, @Inject(#thing)].
This commit is contained in:
Jacob MacDonald
2015-07-01 11:05:59 -07:00
parent 7986e7ce7e
commit 2b45bd2a63
3 changed files with 13 additions and 15 deletions
@@ -11,7 +11,7 @@ void initReflector(reflector) {
..registerType(SoupComponent, {
'factory':
(String description, salt) => new SoupComponent(description, salt),
'parameters': const [const [Tasty, String], const [const Inject(Salt)]],
'parameters': const [const [String, Tasty], const [const Inject(Salt)]],
'annotations': const [const Component(selector: '[soup]')]
});
}