public override void VisitForEachStatement(ForEachStatementSyntax node) { if (node.ShouldBeHidden()) { return; } if (this.InsideAutoIncludeMethodBlock) { var line = node.SyntaxTree.GetLineSpan(node.Span).StartLinePosition.Line; var walker = new CodeWithDocumentationWalker(ClassDepth, line, _propertyOrMethodName); walker.Visit(node); this.Blocks.AddRange(walker.Blocks); } else { base.VisitForEachStatement(node); } }