Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Read): Rename private wrapException -> wrapConstruct #55

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/configy/Read.d
Original file line number Diff line number Diff line change
Expand Up @@ -707,19 +707,19 @@ package FR.Type parseField (alias FR)
true);

else static if (hasConverter!(FR.Ref))
return wrapException(node.viaConverter!(FR), path, node.startMark());
return wrapConstruct(node.viaConverter!(FR), path, node.startMark());

else static if (hasFromYAML!(FR.Type))
{
scope impl = new ConfigParserImpl!(FR.Type)(node, path, ctx);
return wrapException(FR.Type.fromYAML(impl), path, node.startMark());
return wrapConstruct(FR.Type.fromYAML(impl), path, node.startMark());
}

else static if (hasFromString!(FR.Type))
return wrapException(FR.Type.fromString(node.as!string), path, node.startMark());
return wrapConstruct(FR.Type.fromString(node.as!string), path, node.startMark());

else static if (hasStringCtor!(FR.Type))
return wrapException(FR.Type(node.as!string), path, node.startMark());
return wrapConstruct(FR.Type(node.as!string), path, node.startMark());

else static if (is(immutable(FR.Type) == immutable(core.time.Duration)))
{
Expand Down Expand Up @@ -861,7 +861,7 @@ private T parseScalar (T) (Node node, string path)

*******************************************************************************/

private T wrapException (T) (lazy T exp, string path, Mark position,
private T wrapConstruct (T) (lazy T exp, string path, Mark position,
string file = __FILE__, size_t line = __LINE__)
{
try
Expand Down