src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
58if (node?.Span != span)
Compilation\SyntaxTreeSemanticModel.cs (12)
773return ((CSharpSyntaxTree)speculativeSyntax.SyntaxTree).IsNullableAnalysisEnabled(speculativeSyntax.Span) ??
848var span = node.Span;
1338var symbol = GetDeclaredNamespace(container, declarationSyntax.Span, declarationSyntax.Name);
1399var declarationSpan = extensionDeclaration.Span;
1428return GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false, name) as NamedTypeSymbol;
1617return (this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false) as MethodSymbol).GetPublicSymbol();
1640return (this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false) as MethodSymbol).GetPublicSymbol();
1864var result = this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false, declarationSyntax.Identifier.ValueText);
1957if (alias.Alias.GetFirstLocation().SourceSpan == declarationSyntax.Alias.Name.Span)
2049if (location.SourceTree == this.SyntaxTree && parameter.Span.Contains(location.SourceSpan))
2233if (location.SourceTree == this.SyntaxTree && parameter.Span.Contains(location.SourceSpan))
2404return this.GetDeclaredMember(container, declarationSyntax.Span, isKnownToBeANamespace: false, name);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
60localFunction.Span);
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
68declaredType.Span);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (39)
93declarations = (recordDeclaration.ParameterList != null && activeSpan.OverlapsWith(recordDeclaration.ParameterList.Span))
273Debug.Assert(position == switchExpression.Span.Start);
329ForEachPart.Expression => node.Expression.Span,
337ForEachPart.VariableDeclaration => TextSpan.FromBounds(node.Variable.SpanStart, node.Variable.Span.End),
339ForEachPart.Expression => node.Expression.Span,
346SwitchExpressionPart.WholeExpression => node.Span,
586span = ((ArrowExpressionClauseSyntax)node).Expression.Span;
639span = ((SwitchExpressionArmSyntax)node).Expression.Span;
1269oldTypeDeclaration.TypeParameterList?.Span != newTypeDeclaration.TypeParameterList?.Span;
1273oldTypeDeclaration.ParameterList?.Span != newTypeDeclaration.ParameterList?.Span)
1599=> TryGetDiagnosticSpanImpl(node, editKind) ?? node.Span;
1626return node.Span;
1630return node.Span;
1635return TextSpan.FromBounds(ns.NamespaceKeyword.SpanStart, ns.Name.Span.End);
1674return node.Span;
1709return node.Span;
1722return TextSpan.FromBounds(constraint.WhereKeyword.SpanStart, constraint.Constraints.Last().Span.End);
1738return node.Span;
1750return node.Span;
1787return node.Span;
1802(switchStatement.CloseParenToken != default) ? switchStatement.CloseParenToken.Span.End : switchStatement.Expression.Span.End);
1805return ((SwitchSectionSyntax)node).Labels.Last().Span;
1850return node.Span;
1854return CombineSpans(localDeclarationStatement.AwaitKeyword.Span, localDeclarationStatement.UsingKeyword.Span, node.Span);
1864return CombineSpans(parenthesizedLambda.ReturnType?.Span ?? default, parenthesizedLambda.ParameterList.Span, defaultSpan: default);
1867return ((SimpleLambdaExpressionSyntax)node).Parameter.Span;
1902return node.Span;
1921return node.Span;
1958return lambda.Span;
2700return tryStatement.Finally.Span;
2706? tryStatement.Finally.Span.End
2707: tryStatement.Catches.Last().Span.End);
2711return node.Span;
2716return tryStatement.Span;
2741diagnosticContext.Report(RudeEditKind.AwaitStatementUpdate, newContainingStatementPart.Span);
2962AddAroundActiveStatementRudeDiagnostic(diagnostics, oldCheckedStatement, newCheckedStatement, newActiveStatement.Span);
Structure\Providers\ArgumentListStructureProvider.cs (1)
24node.Span));
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.NodeSyntaxReference.cs (1)
25=> _node.Span;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
64from.Span);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
114top.Span);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (10)
261=> TryGetDiagnosticSpan(node, editKind) ?? node.Span;
270return node.Span;
1543if (!newEncompassingAncestor.Span.Contains(newStatementSyntaxSpan.Start))
1819if (TryGetActiveSpan(statement, statementPart, minLength: statement.Span.Length, out var span))
1830return node.Span;
1841return statement.Span;
2474triviaEdits.Add((segment.oldNode, segment.newNode, segment.newNode.Span));
5224locationNode.Span : analyzer.GetDiagnosticSpan(GetDiagnosticNode(out var distance, cancellationToken), distance > 0 ? EditKind.Delete : EditKind.Update),
5452if (!TryFindMemberDeclaration(root: null, newNode, newNode.Span, out var newDeclarations))
5488if (!TryFindMemberDeclaration(root: null, newNode, newNode.Span, out var newDeclarations))
MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceCodeRefactoringProvider.cs (1)
43declaration.Span);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
37argument.Span);
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
58if (node?.Span != span)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
316nameSyntax.Span,