diff --git a/src/Hl7.Fhir.Base/ElementModel/ElementNodeExtensions.cs b/src/Hl7.Fhir.Base/ElementModel/ElementNodeExtensions.cs index b133dbadb9..88a994434a 100644 --- a/src/Hl7.Fhir.Base/ElementModel/ElementNodeExtensions.cs +++ b/src/Hl7.Fhir.Base/ElementModel/ElementNodeExtensions.cs @@ -60,7 +60,11 @@ private static void visit(this ITypedElement root, Action vi public static IDisposable Catch(this ITypedElement source, ExceptionNotificationHandler handler) => source is IExceptionSource s ? s.Catch(handler) : throw new NotImplementedException("Element does not implement IExceptionSource."); - public static void VisitAll(this ITypedElement nav) => nav.Visit((_, n) => { var dummy = n.Value; }); + public static void VisitAll(this ITypedElement nav) => nav.Visit((_, n) => + { + var dummyValue = n.Value; + var dummyDefinition = n.Definition; + }); public static List VisitAndCatch(this ITypedElement node) {