MethodInvocationImpl constructor

MethodInvocationImpl({
  1. required ExpressionImpl? target,
  2. required Token? operator,
  3. required SimpleIdentifierImpl methodName,
  4. required TypeArgumentListImpl? typeArguments,
  5. required ArgumentListImpl argumentList,
})

Initialize a newly created method invocation. The target and operator can be null if there is no target.

Implementation

MethodInvocationImpl({
  required ExpressionImpl? target,
  required this.operator,
  required SimpleIdentifierImpl methodName,
  required super.typeArguments,
  required super.argumentList,
})  : _target = target,
      _methodName = methodName {
  _becomeParentOf(_target);
  _becomeParentOf(_methodName);
}