CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
68declaredType.Span);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (39)
94declarations = (recordDeclaration.ParameterList != null && activeSpan.OverlapsWith(recordDeclaration.ParameterList.Span))
274Debug.Assert(position == switchExpression.Span.Start);
330ForEachPart.Expression => node.Expression.Span,
338ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Variable.SpanStart, node.Variable.Span.End),
340ForEachPart.Expression => node.Expression.Span,
347SwitchExpressionPart.WholeExpression => node.Span,
587span = ((ArrowExpressionClauseSyntax)node).Expression.Span;
640span = ((SwitchExpressionArmSyntax)node).Expression.Span;
1270oldTypeDeclaration.TypeParameterList?.Span != newTypeDeclaration.TypeParameterList?.Span;
1274oldTypeDeclaration.ParameterList?.Span != newTypeDeclaration.ParameterList?.Span)
1600=> TryGetDiagnosticSpanImpl(node, editKind) ?? node.Span;
1627return node.Span;
1631return node.Span;
1636return TextSpan.FromBounds(ns.NamespaceKeyword.SpanStart, ns.Name.Span.End);
1671return node.Span;
1706return node.Span;
1719return TextSpan.FromBounds(constraint.WhereKeyword.SpanStart, constraint.Constraints.Last().Span.End);
1735return node.Span;
1747return node.Span;
1784return node.Span;
1799(switchStatement.CloseParenToken != default) ? switchStatement.CloseParenToken.Span.End : switchStatement.Expression.Span.End);
1802return ((SwitchSectionSyntax)node).Labels.Last().Span;
1847return node.Span;
1851return CombineSpans(localDeclarationStatement.AwaitKeyword.Span, localDeclarationStatement.UsingKeyword.Span, node.Span);
1861return CombineSpans(parenthesizedLambda.ReturnType?.Span ?? default, parenthesizedLambda.ParameterList.Span, defaultSpan: default);
1864return ((SimpleLambdaExpressionSyntax)node).Parameter.Span;
1899return node.Span;
1918return node.Span;
1955return lambda.Span;
2684return tryStatement.Finally.Span;
2690? tryStatement.Finally.Span.End
2691: tryStatement.Catches.Last().Span.End);
2695return node.Span;
2700return tryStatement.Span;
2725diagnosticContext.Report(RudeEditKind.AwaitStatementUpdate, newContainingStatementPart.Span);
2946AddAroundActiveStatementRudeDiagnostic(diagnostics, oldCheckedStatement, newCheckedStatement, newActiveStatement.Span);
Structure\Providers\ArgumentListStructureProvider.cs (1)
24node.Span));
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.NodeSyntaxReference.cs (1)
25=> _node.Span;
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
138invocation.Span);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
261=> TryGetDiagnosticSpan(node, editKind) ?? node.Span;
270return node.Span;
1424if (!newEncompassingAncestor.Span.Contains(newStatementSyntaxSpan.Start))
1700if (TryGetActiveSpan(statement, statementPart, minLength: statement.Span.Length, out var span))
1711return node.Span;
1722return statement.Span;
5038locationNode.Span : analyzer.GetDiagnosticSpan(GetDiagnosticNode(out var distance, cancellationToken), distance > 0 ? EditKind.Delete : EditKind.Update),
5266if (!TryFindMemberDeclaration(root: null, newNode, newNode.Span, out var newDeclarations))
5302if (!TryFindMemberDeclaration(root: null, newNode, newNode.Span, out var newDeclarations))
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
58if (node?.Span != span)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (27)
129While node.Span.Length < span.Length AndAlso node.Parent.SpanStart = position
993Return DirectCast(model.GetEnclosingSymbol(lambdaExpressionSyntax.SubOrFunctionHeader.Span.End, cancellationToken), IMethodSymbol)
1063Return If(TryGetDiagnosticSpanImpl(node, editKind), node.Span)
1089Return node.Span
1165Return node.Span
1177Return node.Span
1182Return node.Span
1219Return DirectCast(node, SyncLockBlockSyntax).SyncLockStatement.Span
1222Return DirectCast(node, WithBlockSyntax).WithStatement.Span
1225Return DirectCast(node, UsingBlockSyntax).UsingStatement.Span
1232Return DirectCast(node, DoLoopBlockSyntax).DoStatement.Span
1235Return DirectCast(node, WhileBlockSyntax).WhileStatement.Span
1239Return DirectCast(node, ForOrForEachBlockSyntax).ForOrForEachStatement.Span
1253Return DirectCast(node, LambdaExpressionSyntax).SubOrFunctionHeader.Span
1284Return node.Span
1297Return node.Span
1303Return node.Span
1309If(thenKeywordOpt.RawKind <> 0, thenKeywordOpt.Span.End, condition.Span.End))
1313Return TextSpan.FromBounds(node.NamespaceKeyword.SpanStart, node.Name.Span.End)
1410Return DirectCast(lambda, LambdaExpressionSyntax).SubOrFunctionHeader.ParameterList.Parameters(ordinal).Identifier.Span
1413Return lambda.Span
2124Return TextSpan.FromBounds(tryBlock.FinallyBlock.SpanStart, tryBlock.EndTryStatement.Span.End)
2127Return TextSpan.FromBounds(tryBlock.CatchBlocks.First().SpanStart, tryBlock.EndTryStatement.Span.End)
2131Return node.Span
2135Return DirectCast(node.Parent, TryBlockSyntax).Span
2172diagnosticContext.Report(RudeEditKind.AwaitStatementUpdate, newContainingStatementPart.Span)
2286AddAroundActiveStatementRudeDiagnostic(diagnostics, oldActiveStatement, onErrorOrResumeStatement, newActiveStatement.Span)
Structure\Providers\CollectionInitializerStructureProvider.vb (1)
40node.Span.End)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
316nameSyntax.Span,