visitProvideClass abstract method
void
visitProvideClass(
- int index,
- TokenElement token,
- Expression tokenExpression,
- Reference type,
- String? constructor,
- List<
Expression> dependencies, - bool isMulti,
Implement providing a new instance of type
, calling constructor
.
Any dependencies
are expected to invoke local methods as appropriate:
refer('inject').call([refer('Dep1')])
Implementation
void visitProvideClass(
int index,
TokenElement token,
Expression tokenExpression,
Reference type,
String? constructor,
List<Expression> dependencies,
bool isMulti,
);