コード例 #1
0
 internal QualifiedNameSyntax(SyntaxKind kind, NameSyntax left, SyntaxToken dotToken, SimpleNameSyntax right)
     : base(kind)
 {
     this.SlotCount = 3;
     this.left      = left;
     this.dotToken  = dotToken;
     this.right     = right;
 }
コード例 #2
0
 public ClassDeclarationSyntax WithName(SimpleNameSyntax name)
 {
     return(this.Update(this.CaseKeyword, this.ClassKeyword, name, this.OpenBracketToken, this.Members, this.CloseBracketToken));
 }
コード例 #3
0
 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;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public QualifiedNameSyntax WithRight(SimpleNameSyntax right)
 {
     return(this.Update(this.Left, this.DotToken, right));
 }