refactor: rename Field to Struct for ref type create function
Hocon type reference is actually a child-struct's struct name not necessarily the same name as the parent-sutrct's field name This commit changes the variable name for more clarity
This commit is contained in:
parent
e8dc7bc1b0
commit
ecbf867551
|
@ -2094,9 +2094,9 @@ sc(Type, Meta) -> hoconsc:mk(Type, Meta).
|
||||||
|
|
||||||
map(Name, Type) -> hoconsc:map(Name, Type).
|
map(Name, Type) -> hoconsc:map(Name, Type).
|
||||||
|
|
||||||
ref(Field) -> hoconsc:ref(?MODULE, Field).
|
ref(StructName) -> hoconsc:ref(?MODULE, StructName).
|
||||||
|
|
||||||
ref(Module, Field) -> hoconsc:ref(Module, Field).
|
ref(Module, StructName) -> hoconsc:ref(Module, StructName).
|
||||||
|
|
||||||
mk_duration(Desc, OverrideMeta) ->
|
mk_duration(Desc, OverrideMeta) ->
|
||||||
DefaultMeta = #{
|
DefaultMeta = #{
|
||||||
|
|
Loading…
Reference in New Issue