コード例 #1
0
        public override void Accept(SyntaxVisitor visitor)
        {
            if (visitor.VisitEmptyStatementSyntax(this, VisitKind.Enter))
            {
                TerminatingSemicolonToken.Accept(visitor);

                visitor.VisitEmptyStatementSyntax(this, VisitKind.Leave);
            }
        }
コード例 #2
0
        public override void Accept(SyntaxVisitor visitor)
        {
            if (visitor.VisitNodeStatementSyntax(this, VisitKind.Enter))
            {
                Identifier.Accept(visitor);
                Attributes?.Accept(visitor);
                TerminatingSemicolonToken.Accept(visitor);

                visitor.VisitNodeStatementSyntax(this, VisitKind.Leave);
            }
        }
コード例 #3
0
        public override void Accept(SyntaxVisitor visitor)
        {
            if (visitor.VisitSubgraphStatementSyntax(this, VisitKind.Enter))
            {
                GraphTypeKeyword.Accept(visitor);
                IdentifierToken.Accept(visitor);
                OpenBraceToken.Accept(visitor);

                foreach (var statement in Statements)
                {
                    statement.Accept(visitor);
                }

                CloseBraceToken.Accept(visitor);
                TerminatingSemicolonToken.Accept(visitor);

                visitor.VisitSubgraphStatementSyntax(this, VisitKind.Leave);
            }
        }