-
Notifications
You must be signed in to change notification settings - Fork 4k
/
DocumentActiveContextChangedEventArgs.cs
33 lines (28 loc) · 1.3 KB
/
DocumentActiveContextChangedEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using Microsoft.CodeAnalysis.Text;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis
{
public sealed class DocumentActiveContextChangedEventArgs : EventArgs
{
public Solution Solution { get; }
public SourceTextContainer SourceTextContainer { get; }
public DocumentId OldActiveContextDocumentId { get; }
public DocumentId NewActiveContextDocumentId { get; }
public DocumentActiveContextChangedEventArgs(Solution solution, SourceTextContainer sourceTextContainer, DocumentId oldActiveContextDocumentId, DocumentId newActiveContextDocumentId)
{
Contract.ThrowIfNull(solution);
Contract.ThrowIfNull(sourceTextContainer);
Contract.ThrowIfNull(oldActiveContextDocumentId);
Contract.ThrowIfNull(newActiveContextDocumentId);
this.Solution = solution;
this.SourceTextContainer = sourceTextContainer;
this.OldActiveContextDocumentId = oldActiveContextDocumentId;
this.NewActiveContextDocumentId = newActiveContextDocumentId;
}
}
}