void VisitRepeat(Repeat repeat) { WriteKeyword("repeat"); LPar(); if (repeat.MinCount != 0 || repeat.MaxCount != int.MaxValue) { WriteIdentifier(repeat.MinCount.ToString()); WriteToken(Roles.Comma); WriteIdentifier(repeat.MaxCount.ToString()); WriteToken(Roles.Comma); } VisitNodeInPattern(repeat.ChildNode); RPar(); }
void VisitRepeat(Repeat repeat) { WriteKeyword("repeat"); var braceHelper = BraceHelper.LeftParen(this, CodeBracesRangeFlags.Parentheses); if (repeat.MinCount != 0 || repeat.MaxCount != int.MaxValue) { WriteIdentifier(repeat.MinCount.ToString(), BoxedTextColor.Number); WriteToken(Roles.Comma, BoxedTextColor.Punctuation); WriteIdentifier(repeat.MaxCount.ToString(), BoxedTextColor.Number); WriteToken(Roles.Comma, BoxedTextColor.Punctuation); } VisitNodeInPattern(repeat.ChildNode); braceHelper.RightParen(); }