From 3dcbca255143572bc21e644f3be3a4242b4c8116 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 18 May 2023 00:04:50 +0300 Subject: [PATCH] Get rid of @property They are depreciated and on their way out in the D world --- source/poodinis/factory.d | 4 ++-- source/poodinis/registration.d | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/poodinis/factory.d b/source/poodinis/factory.d index 82d6022..7f51419 100644 --- a/source/poodinis/factory.d +++ b/source/poodinis/factory.d @@ -49,7 +49,7 @@ class InstanceFactory { factoryParameters = InstanceFactoryParameters(); } - @property void factoryParameters(InstanceFactoryParameters factoryParameters) { + void factoryParameters(InstanceFactoryParameters factoryParameters) { if (factoryParameters.factoryMethod is null) { factoryParameters.factoryMethod = &this.createInstance; } @@ -62,7 +62,7 @@ class InstanceFactory { _factoryParameters = factoryParameters; } - @property InstanceFactoryParameters factoryParameters() { + InstanceFactoryParameters factoryParameters() { return _factoryParameters; } diff --git a/source/poodinis/registration.d b/source/poodinis/registration.d index e5c244c..680a030 100644 --- a/source/poodinis/registration.d +++ b/source/poodinis/registration.d @@ -25,27 +25,27 @@ class Registration { private InstanceFactory _instanceFactory; private void delegate() _preDestructor; - @property registeredType() { + TypeInfo registeredType() { return _registeredType; } - @property instanceType() { + TypeInfo_Class instanceType() { return _instanceType; } - @property originatingContainer() { + shared(DependencyContainer) originatingContainer() { return _originatingContainer; } - @property instanceFactory() { + InstanceFactory instanceFactory() { return _instanceFactory; } - @property preDestructor() { + void delegate() preDestructor() { return _preDestructor; } - protected @property preDestructor(void delegate() preDestructor) { + protected void preDestructor(void delegate() preDestructor) { _preDestructor = preDestructor; }