19 references to ForEachPart
Microsoft.CodeAnalysis.CSharp.Features (19)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (19)
317private static ForEachPart GetStatementPart(CommonForEachStatementSyntax node, int position) 318=> position < node.OpenParenToken.SpanStart ? ForEachPart.ForEach : 319position < node.InKeyword.SpanStart ? ForEachPart.VariableDeclaration : 320position < node.Expression.SpanStart ? ForEachPart.In : 321ForEachPart.Expression; 323private static TextSpan GetActiveSpan(ForEachStatementSyntax node, ForEachPart part) 326ForEachPart.ForEach => node.ForEachKeyword.Span, 327ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Type.SpanStart, node.Identifier.Span.End), 328ForEachPart.In => node.InKeyword.Span, 329ForEachPart.Expression => node.Expression.Span, 333private static TextSpan GetActiveSpan(ForEachVariableStatementSyntax node, ForEachPart part) 336ForEachPart.ForEach => node.ForEachKeyword.Span, 337ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Variable.SpanStart, node.Variable.Span.End), 338ForEachPart.In => node.InKeyword.Span, 339ForEachPart.Expression => node.Expression.Span, 594span = GetActiveSpan((ForEachStatementSyntax)node, (ForEachPart)statementPart); 598span = GetActiveSpan((ForEachVariableStatementSyntax)node, (ForEachPart)statementPart); 695yield return (parent, (int)ForEachPart.In); 748yield return (node, (int)ForEachPart.ForEach);