2 writes to _workspace
Microsoft.CodeAnalysis.EditorFeatures (2)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (2)
226
_workspace
= workspace;
249
_workspace
= null;
12 references to _workspace
Microsoft.CodeAnalysis.EditorFeatures (12)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (12)
138
var workspace =
_workspace
;
179
if (newWorkspace ==
_workspace
)
227
_workspace
.WorkspaceChanged += this.OnWorkspaceChanged;
228
_workspace
.DocumentActiveContextChanged += this.OnDocumentActiveContextChanged;
244
if (
_workspace
!= null)
246
_workspace
.WorkspaceChanged -= this.OnWorkspaceChanged;
247
_workspace
.DocumentActiveContextChanged -= this.OnDocumentActiveContextChanged;
269
if (
_workspace
== null)
273
var bufferDocumentId =
_workspace
.GetDocumentIdInCurrentContext(_subjectBuffer.AsTextContainer());
285
if (args.NewSolution.Workspace !=
_workspace
)
291
var documentId =
_workspace
.GetDocumentIdInCurrentContext(_subjectBuffer.AsTextContainer());
413
if (spans.Count == 0 ||
_workspace
== null)