visitProvideFactory abstract method

void visitProvideFactory(
  1. int index,
  2. TokenElement token,
  3. Expression tokenExpression,
  4. Reference returnType,
  5. Reference function,
  6. List<Expression> dependencies,
  7. bool isMulti,
)

Implement providing token by calling function.

Any dependencies are expected to invoke local methods as appropriate:

refer('inject').call([refer('Dep1')])

Implementation

void visitProvideFactory(
  int index,
  TokenElement token,
  Expression tokenExpression,
  Reference returnType,
  Reference function,
  List<Expression> dependencies,
  bool isMulti,
);