RedirectingConstructorInvocationImpl constructor

RedirectingConstructorInvocationImpl({
  1. required Token thisKeyword,
  2. required Token? period,
  3. required SimpleIdentifierImpl? constructorName,
  4. required ArgumentListImpl argumentList,
})

Initialize a newly created redirecting invocation to invoke the constructor with the given name with the given arguments. The constructorName can be null if the constructor being invoked is the unnamed constructor.

Implementation

RedirectingConstructorInvocationImpl({
  required this.thisKeyword,
  required this.period,
  required SimpleIdentifierImpl? constructorName,
  required ArgumentListImpl argumentList,
})  : _constructorName = constructorName,
      _argumentList = argumentList {
  _becomeParentOf(_constructorName);
  _becomeParentOf(_argumentList);
}