1 write to Span
Microsoft.CodeAnalysis.Workspaces (1)
CodeRefactorings\CodeRefactoringContext.cs (1)
93Span = span;
18 references to Span
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (1)
20context.RegisterRefactoring(new ExceptionCodeAction(), context.Span);
CodeActions\PreviewTests.cs (1)
48context.RegisterRefactoring(codeAction, context.Span);
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
73if (!context.Span.IntersectsWith(token.Span))
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
83context.RegisterRefactorings(refactorings.ToImmutableArray(), context.Span);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
79var span = context.Span;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
111context.RegisterRefactoring(CodeAction.Create("Description", _ => Task.FromResult(newSolution)), context.Span);
Microsoft.CodeAnalysis.Features (8)
CodeRefactorings\CodeRefactoringContextExtensions.cs (2)
46return TryGetRelevantNode<TSyntaxNode>(parsedDocument, context.Span, allowEmptyNode, context.CancellationToken); 55return GetRelevantNodes<TSyntaxNode>(parsedDocument, context.Span, allowEmptyNodes, context.CancellationToken);
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (2)
38var token = root.FindToken(context.Span.Start); 39if (!context.Span.IntersectsWith(token.Span))
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
67context.Span,
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (2)
106context.RegisterRefactorings(refactorings, context.Span); 127context.RegisterRefactorings(refactorings, context.Span);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
74return expressionStatement != null && IsValid(expressionStatement, context.Span)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeRefactorings\NodeSelectionHelpers.vb (1)
16Dim span As TextSpan = context.Span
Microsoft.CodeAnalysis.Workspaces (3)
CodeRefactorings\CodeRefactoringContext.cs (3)
19/// Document corresponding to the <see cref="CodeRefactoringContext.Span"/> to refactor. 39/// TextDocument corresponding to the <see cref="CodeRefactoringContext.Span"/> to refactor. 128span = Span;