13 references to SourceCodeKind
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractCompletionProviderTests.cs (2)
113=> document.SourceCodeKind == SourceCodeKind.Regular ? [] : [PredefinedInteractiveTextViewRoles.InteractiveTextViewRole]; 207if (result.SourceCodeKind is not null && result.SourceCodeKind != document.SourceCodeKind)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\CommittedSolution.cs (1)
273sourceCodeKind: document.SourceCodeKind,
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Document.cs (1)
67DocumentState.SourceCodeKind != otherDocument.SourceCodeKind;
Workspace\Workspace.cs (1)
2051doc is Document sourceDoc ? sourceDoc.SourceCodeKind : SourceCodeKind.Regular,
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\SolutionTests.cs (1)
294Assert.Equal(SourceCodeKind.Script, newSolution.GetDocument(documentId)!.SourceCodeKind);
WorkspaceTests\AdhocWorkspaceTests.cs (3)
515Assert.Equal(SourceCodeKind.Regular, originalDoc.SourceCodeKind); 518Assert.Equal(SourceCodeKind.Script, changedDoc.SourceCodeKind); 533Assert.Equal(SourceCodeKind.Script, appliedDoc.SourceCodeKind);
WorkspaceTests\WorkspaceTests.cs (2)
91Assert.Equal(SourceCodeKind.Regular, originalDoc.SourceCodeKind); 94Assert.Equal(SourceCodeKind.Script, changedDoc.SourceCodeKind);
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
1281if (document.SourceCodeKind != updatedInfo.SourceCodeKind) 1284$"This Workspace does not support changing a document's {nameof(document.SourceCodeKind)}.");