@@ -117,20 +117,23 @@ Map<String, String> _readStringMapValue(Map args, String name) {
117
117
return value;
118
118
}
119
119
120
- List < List < Transformer >> _createPhases (TransformOptions options) {
120
+ Transformer _staticGenerator (TransformOptions options) {
121
121
var resolvers = new Resolvers (options.sdkDirectory);
122
- return [
123
- [ new HtmlDartReferencesGenerator (options) ],
124
- [ new di.InjectorGenerator (options.diOptions, resolvers) ],
125
- [ new _SerialTransformer ([
126
- new TypeRelativeUriGenerator (options, resolvers),
122
+ return new _SerialTransformer ([
127
123
new ExpressionGenerator (options, resolvers),
128
124
new MetadataGenerator (options, resolvers),
129
- new StaticAngularGenerator (options, resolvers)
130
- ])]
131
- ];
125
+ new StaticAngularGenerator (options, resolvers),
126
+ new TypeRelativeUriGenerator (options, resolvers)
127
+ ]) ;
132
128
}
133
129
130
+ List <List <Transformer >> _createPhases (TransformOptions options) =>
131
+ [
132
+ [ new HtmlDartReferencesGenerator (options) ],
133
+ [ new di.InjectorGenerator (options.diOptions, new Resolvers (options.sdkDirectory)) ],
134
+ [ _staticGenerator (options) ]
135
+ ];
136
+
134
137
/// Helper which runs a group of transformers serially and ensures that
135
138
/// transformers with shared data are always applied in a specific order.
136
139
///
0 commit comments