From 39e872f3cb4bb984cc43a2a5f37a72780bf6abf9 Mon Sep 17 00:00:00 2001 From: Francis Bourre Date: Fri, 29 Sep 2017 08:32:53 +0200 Subject: [PATCH] Optional doesn't need to be set to true anymore, true is default value. --- src/hex/di/annotation/ReflectionBuilder.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hex/di/annotation/ReflectionBuilder.hx b/src/hex/di/annotation/ReflectionBuilder.hx index 89ee279..11bfe91 100644 --- a/src/hex/di/annotation/ReflectionBuilder.hx +++ b/src/hex/di/annotation/ReflectionBuilder.hx @@ -69,7 +69,7 @@ class ReflectionBuilder //injectionName {field: "n", expr: macro $v { key == null?"":key }}, //isOptional - {field: "o", expr: macro $v{isOpt==null?false:isOpt}} + {field: "o", expr: macro $v{isOpt==null?true:isOpt}} ]); propValues.push( {expr: eProp, pos:Context.currentPos()} ); } @@ -96,7 +96,7 @@ class ReflectionBuilder //injectionName {field: "n", expr: macro $v { key == null?"":key }}, //isOptional - {field: "o", expr: macro $v{isOpt==null?false:isOpt}} + {field: "o", expr: macro $v{isOpt==null?true:isOpt}} ]); argValues.push( { expr: eArg, pos:Context.currentPos() } ); @@ -170,7 +170,7 @@ class ReflectionBuilder //injectionName {field: "n", expr: macro $v { key == null?"":key }}, //isOptional - {field: "o", expr: macro $v{isOpt == null?false:isOpt}} + {field: "o", expr: macro $v{isOpt == null?true:isOpt}} ]); ctorArgValues.push( { expr: eCtorArg, pos:Context.currentPos() } );