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