Skip to content

Commit

Permalink
accidentally duplicated this
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasdejong committed Dec 5, 2024
1 parent a26298c commit eebe980
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,4 @@ public static T WithResourceOverrides<T>(this T context, IScopedNode? resource,
context.RootResource = rootResource ?? resource;
return context;
}
}

public static class EvaluationContextExtensions
{
public static T WithResourceOverrides<T>(this T context, ITypedElement? resource, ITypedElement? rootResource = null) where T : EvaluationContext
{
context.Resource = resource;
context.RootResource = rootResource ?? resource;
return context;
}
}

0 comments on commit eebe980

Please sign in to comment.