コード例 #1
0
        private void VisitStatement(StatementSyntax node)
        {
            IASTWalker       walker = new StatementASTWalkerBuilder(node, this.semanticModel).Build();
            ITranslationUnit statementTranslationUnit = walker.Walk();

            this.statementsGroup.AddStatement(statementTranslationUnit);

            this.InvokeStatementVisited(this, new WalkerEventArgs());
        }
コード例 #2
0
        private void VisitStatement(StatementSyntax node)
        {
            if (node.Kind() != SyntaxKind.EmptyStatement)
            {
                IASTWalker       walker = new StatementASTWalkerBuilder(node, this.semanticModel).Build();
                ITranslationUnit statementTranslationUnit = walker.Walk();

                this.methodDeclaration.AddStatement(statementTranslationUnit);
            }
            this.InvokeStatementVisited(this, new WalkerEventArgs());
        }
コード例 #3
0
        private void VisitStatement(StatementSyntax node)
        {
            IASTWalker       walker = new StatementASTWalkerBuilder(node, this.semanticModel).Build();
            ITranslationUnit statementTranslationUnit = walker.Walk();

            this.methodDeclaration.AddStatement(statementTranslationUnit);

            // TODO: Add logging

            this.InvokeStatementVisited(this, new WalkerEventArgs());
        }