19 references to ForEachPart
Microsoft.CodeAnalysis.CSharp.Features (19)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (19)
318private static ForEachPart GetStatementPart(CommonForEachStatementSyntax node, int position) 319=> position < node.OpenParenToken.SpanStart ? ForEachPart.ForEach : 320position < node.InKeyword.SpanStart ? ForEachPart.VariableDeclaration : 321position < node.Expression.SpanStart ? ForEachPart.In : 322ForEachPart.Expression; 324private static TextSpan GetActiveSpan(ForEachStatementSyntax node, ForEachPart part) 327ForEachPart.ForEach => node.ForEachKeyword.Span, 328ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Type.SpanStart, node.Identifier.Span.End), 329ForEachPart.In => node.InKeyword.Span, 330ForEachPart.Expression => node.Expression.Span, 334private static TextSpan GetActiveSpan(ForEachVariableStatementSyntax node, ForEachPart part) 337ForEachPart.ForEach => node.ForEachKeyword.Span, 338ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Variable.SpanStart, node.Variable.Span.End), 339ForEachPart.In => node.InKeyword.Span, 340ForEachPart.Expression => node.Expression.Span, 595span = GetActiveSpan((ForEachStatementSyntax)node, (ForEachPart)statementPart); 599span = GetActiveSpan((ForEachVariableStatementSyntax)node, (ForEachPart)statementPart); 696yield return (parent, (int)ForEachPart.In); 749yield return (node, (int)ForEachPart.ForEach);