示例#1
0
                public IfElseIfConstructAnalyzer([NotNull] IfStatementAnalyzer owner, [NotNull] IIfStatement topIfStatement)
                {
                    this.owner = owner;

                    topIfKeywordLocation = topIfStatement.GetLocationForKeyword();
                    ifStatement          = topIfStatement;
                }
        private static void AnalyzeCodeBlock(OperationBlockAnalysisContext context)
        {
            var collector = new IfStatementCollector();

            collector.VisitBlocks(context.OperationBlocks);

            var analyzer = new IfStatementAnalyzer(collector.CollectedIfStatements, context);

            analyzer.Analyze();
        }