EditAndContinue\CSharpEditAndContinueAnalyzer.cs (12)
332if (position < declarationBody.SpanStart)
362position = declarationBody.SpanStart;
406Debug.Assert(position == ((PropertyDeclarationSyntax)node).Initializer!.SpanStart);
457Debug.Assert(position == ((SwitchExpressionArmSyntax)node).Expression.SpanStart);
489position < node.Expression.SpanStart ? ForEachPart.In :
496ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Type.SpanStart, node.Identifier.Span.End),
506ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Variable.SpanStart, node.Variable.Span.End),
882BreakpointSpans.TryGetClosestBreakpointSpan(node, propertyDeclaration.Initializer.SpanStart, out span))
909return BreakpointSpans.TryGetClosestBreakpointSpan(node, node.SpanStart, out span);
1448return model.GetEnclosingSymbol(node.SpanStart, cancellationToken);
1491return (IMethodSymbol)model.GetRequiredEnclosingSymbol(bodyExpression.SpanStart, cancellationToken);
2661tryStatement.Catches.First().SpanStart,
Recommendations\CSharpRecommendationServiceRunner.cs (6)
229alias.SpanStart,
328return new RecommendedSymbols(_context.SemanticModel.LookupSymbols(position: name.SpanStart, container: symbol));
331position: name.SpanStart,
377var speculativeSymbolInfo = _context.SemanticModel.GetSpeculativeSymbolInfo(expression.SpanStart, expression, SpeculativeBindingOption.BindAsTypeOrNamespace);
456!_context.SemanticModel.IsEventUsableAsField(originalExpression.SpanStart, ev))
514var symbols = GetMemberSymbols(containerSymbol, position: originalExpression.SpanStart, excludeInstance, useBaseReferenceAccessibility, unwrapNullable, isForDereference);