16 references to IsGenerated
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (1)
253if (document.State.Attributes.IsGenerated)
EditAndContinue\CommittedSolution.cs (1)
308isGenerated: document.State.Attributes.IsGenerated)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (2)
575Contract.ThrowIfFalse(document.State.Attributes.IsGenerated == newDocumentInfo.IsGenerated);
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\DocumentInfo.cs (4)
51public bool IsGenerated => Attributes.IsGenerated; 209var newIsGenerated = isGenerated.HasValue ? isGenerated.Value : IsGenerated; 217newIsGenerated == IsGenerated && 240writer.WriteBoolean(IsGenerated);
Workspace\Solution\DocumentState.cs (1)
100=> Attributes.IsGenerated;
Workspace\Workspace.cs (1)
2082isGenerated: doc.State.Attributes.IsGenerated)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionTests.cs (4)
2404Assert.False(document.State.Attributes.IsGenerated); 2432Assert.True(document.State.Attributes.IsGenerated); 2484Assert.False(document2.State.Attributes.IsGenerated); 2523Assert.False(document2.State.Attributes.IsGenerated);
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
1342if (document.State.Attributes.IsGenerated != updatedInfo.IsGenerated) 1345$"This Workspace does not support changing a document's {nameof(document.State.Attributes.IsGenerated)} state.");