-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: permits to specify the placement of overwrites (#9937)
* feat: permits to specify the placement of overwrites Related #9908 Related #7648 * Corrected a small bug after refactoring. * IItemWithMetadata is now internal. * PolySharp is no more active for Docfx.Common --------- Co-authored-by: Yufei Huang <[email protected]>
- Loading branch information
1 parent
7df2c32
commit 4439ad1
Showing
6 changed files
with
107 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements.\r | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
namespace Docfx.Common.EntityMergers; | ||
|
||
|
||
/// <summary> | ||
/// The placement for a merge. | ||
/// </summary> | ||
internal enum MergePlacement | ||
{ | ||
|
||
/// <summary> | ||
/// The placement is not specified. | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// The override must be placed after the original content. | ||
/// </summary> | ||
After, | ||
|
||
/// <summary> | ||
/// The override must be placed before the original content. | ||
/// </summary> | ||
Before, | ||
|
||
/// <summary> | ||
/// The override must replace the original content. | ||
/// </summary> | ||
Replace | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements.\r | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
namespace Docfx.Common; | ||
|
||
|
||
/// <summary> | ||
/// An item that contains metadate | ||
/// </summary> | ||
internal interface IItemWithMetadata | ||
{ | ||
|
||
/// <summary> | ||
/// Gets the metadata. | ||
/// </summary> | ||
/// <value>The metadata.</value> | ||
Dictionary<string, object> Metadata { get; } | ||
|
||
} |
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