Get rid of @property

They are depreciated and on their way out in the D world
This commit is contained in:
Mike Bierlee 2023-05-18 00:04:50 +03:00
parent adbd913b24
commit 3dcbca2551
2 changed files with 8 additions and 8 deletions

View file

@ -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;
}

View file

@ -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;
}