IfElementImpl constructor
IfElementImpl({
- required Token ifKeyword,
- required Token leftParenthesis,
- required ExpressionImpl condition,
- required CaseClauseImpl? caseClause,
- required Token rightParenthesis,
- required CollectionElementImpl thenElement,
- required Token? elseKeyword,
- required CollectionElementImpl? elseElement,
Initialize a newly created for element.
Implementation
IfElementImpl({
required this.ifKeyword,
required this.leftParenthesis,
required ExpressionImpl condition,
required this.caseClause,
required this.rightParenthesis,
required CollectionElementImpl thenElement,
required this.elseKeyword,
required CollectionElementImpl? elseElement,
}) : _condition = condition,
_thenElement = thenElement,
_elseElement = elseElement {
_becomeParentOf(_condition);
_becomeParentOf(caseClause);
_becomeParentOf(_thenElement);
_becomeParentOf(_elseElement);
}