From 75e520c161ab32e1415483d0629dff21bc4a6582 Mon Sep 17 00:00:00 2001 From: mmsmits Date: Tue, 19 Nov 2024 16:42:11 +0100 Subject: [PATCH] make RemoveAllNonInheritableExtensions public --- .../Specification/Snapshot/SnapshotGeneratorExtensions.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs b/src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs index 3cd2cb0ab..159e5b378 100644 --- a/src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs +++ b/src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs @@ -76,8 +76,12 @@ public static void RemoveAllConstrainedByDiffExtensions(this IEnumerable e } } - - internal static void RemoveAllNonInheritableExtensions(this Element element) + /// + /// This extension removes all non-inheritable extensions from the specified element definition and all it's child objects. + /// Non-inheritable extensions are extensions that should not be inherited by derived profiles. + /// + /// + public static void RemoveAllNonInheritableExtensions(this Element element) { if (element == null) { throw Error.ArgumentNull(nameof(element)); } element.RemoveNonInheritableExtensions();