SuperConstructorInvocationImpl constructor

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

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

Implementation

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