\s\body\do

This commit is contained in:
Basile Burg 2018-07-12 10:06:46 +02:00
parent 040d19b9bc
commit c0c1122a51
4 changed files with 5 additions and 5 deletions

View file

@ -118,7 +118,7 @@ struct Dumper(Range)
{ {
assert(indent != 0, "Can't use zero YAML indent width"); assert(indent != 0, "Can't use zero YAML indent width");
} }
body do
{ {
indent_ = indent; indent_ = indent;
} }

View file

@ -195,7 +195,7 @@ struct Loader
{ {
assert(!done_, "Loader: Trying to load YAML twice"); assert(!done_, "Loader: Trying to load YAML twice");
} }
body do
{ {
try try
{ {
@ -258,7 +258,7 @@ struct Loader
{ {
assert(!done_, "Loader: Trying to load YAML twice"); assert(!done_, "Loader: Trying to load YAML twice");
} }
body do
{ {
scope(exit) { done_ = true; } scope(exit) { done_ = true; }
try try

View file

@ -414,7 +414,7 @@ struct Node
"Lengths of keys and values arrays to construct " ~ "Lengths of keys and values arrays to construct " ~
"a YAML node from don't match"); "a YAML node from don't match");
} }
body do
{ {
tag_ = tag; tag_ = tag;

View file

@ -142,7 +142,7 @@ string[][string] findTestFilenames(const string dir) @trusted
*/ */
void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings) void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings)
in{assert(F.length == strings.length);} in{assert(F.length == strings.length);}
body do
{ {
tuple[index] = strings[index]; tuple[index] = strings[index];
static if(index > 0){stringsToTuple!(index - 1, F)(tuple, strings);} static if(index > 0){stringsToTuple!(index - 1, F)(tuple, strings);}