forked from dnSpy/dnSpy
-
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5dc3b4
commit 6d0f609
Showing
6 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
dnSpy/dnSpy.Contracts.DnSpy/Documents/TreeView/JsonBundleEntryNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
using System.Diagnostics; | ||
using dnSpy.Contracts.Bundles; | ||
using dnSpy.Contracts.TreeView; | ||
|
||
namespace dnSpy.Contracts.Documents.TreeView { | ||
/// <summary> | ||
/// JSON bundle entry node | ||
/// </summary> | ||
public abstract class JsonBundleEntryNode : DocumentTreeNodeData { | ||
public abstract class JsonBundleEntryNode : DocumentTreeNodeData, IBundleEntryNode { | ||
/// <inheritdoc/> | ||
public BundleEntry BundleEntry { get; } | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
protected JsonBundleEntryNode(BundleEntry bundleEntry) => Debug2.Assert(bundleEntry is not null); | ||
protected JsonBundleEntryNode(BundleEntry bundleEntry) { | ||
Debug2.Assert(bundleEntry is not null); | ||
BundleEntry = bundleEntry; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
dnSpy/dnSpy.Contracts.DnSpy/Documents/TreeView/UnknownBundleEntryNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
using System.Diagnostics; | ||
using dnSpy.Contracts.Bundles; | ||
using dnSpy.Contracts.TreeView; | ||
|
||
namespace dnSpy.Contracts.Documents.TreeView { | ||
/// <summary> | ||
/// Unknown bundle entry node | ||
/// </summary> | ||
public abstract class UnknownBundleEntryNode : DocumentTreeNodeData { | ||
public abstract class UnknownBundleEntryNode : DocumentTreeNodeData, IBundleEntryNode { | ||
/// <inheritdoc/> | ||
public BundleEntry BundleEntry { get; } | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
protected UnknownBundleEntryNode(BundleEntry bundleEntry) => Debug2.Assert(bundleEntry is not null); | ||
protected UnknownBundleEntryNode(BundleEntry bundleEntry) { | ||
Debug2.Assert(bundleEntry is not null); | ||
BundleEntry = bundleEntry; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Copyright (C) 2023 ElektroKill | ||
This file is part of dnSpy | ||
dnSpy is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
dnSpy is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with dnSpy. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
using dnSpy.Contracts.Bundles; | ||
|
||
namespace dnSpy.Contracts.TreeView { | ||
/// <summary> | ||
/// A node which can be a bundle entry | ||
/// </summary> | ||
public interface IBundleEntryNode { | ||
/// <summary> | ||
/// Gets the bundle entry for this node or null | ||
/// </summary> | ||
BundleEntry? BundleEntry { get; } | ||
} | ||
} |