internal QualifiedNameSyntax(SyntaxKind kind, NameSyntax left, SyntaxToken dotToken, SimpleNameSyntax right)
     : base(kind)
 {
     this.SlotCount = 3;
     this.left      = left;
     this.dotToken  = dotToken;
     this.right     = right;
 }
 public ClassDeclarationSyntax WithName(SimpleNameSyntax name)
 {
     return(this.Update(this.CaseKeyword, this.ClassKeyword, name, this.OpenBracketToken, this.Members, this.CloseBracketToken));
 }
 internal ClassDeclarationSyntax(SyntaxKind kind, SyntaxToken caseKeyword, SyntaxToken classKeyword, SimpleNameSyntax name, SyntaxToken openBracketToken, SyntaxNode members, SyntaxToken closeBracketToken)
     : base(kind)
 {
     this.SlotCount         = 6;
     this.caseKeyword       = caseKeyword;
     this.classKeyword      = classKeyword;
     this.name              = name;
     this.openBracketToken  = openBracketToken;
     this.members           = members;
     this.closeBracketToken = closeBracketToken;
 }
        public ClassDeclarationSyntax Update(SyntaxToken caseKeyword, SyntaxToken classKeyword, SimpleNameSyntax name, SyntaxToken openBracketToken, SyntaxList <BaseMemberDeclarationSyntax> members, SyntaxToken closeBracketToken)
        {
            if (caseKeyword != this.CaseKeyword || classKeyword != this.ClassKeyword || name != this.Name || openBracketToken != this.OpenBracketToken || members != this.Members || closeBracketToken != this.CloseBracketToken)
            {
                return(SyntaxFactory.ClassDeclaration(caseKeyword, classKeyword, name, openBracketToken, members, closeBracketToken));
            }

            return(this);
        }
 public QualifiedNameSyntax WithRight(SimpleNameSyntax right)
 {
     return(this.Update(this.Left, this.DotToken, right));
 }