build method
Returns a reference to this provider instance.
Implementation
@override
o.Expression build() {
var paramExpressions = <o.Expression>[];
for (var s in _parameters) {
paramExpressions.add(s.build());
}
final clazz = o.importExpr(_classType!);
final create = clazz.instantiate(
paramExpressions,
type: o.importType(_classType),
genericTypes: _typeArguments,
);
if (hasDynamicDependencies) {
return debugInjectorWrap(createDiTokenExpression(token!), create);
}
return create;
}