\s\body\do
This commit is contained in:
parent
040d19b9bc
commit
c0c1122a51
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);}
|
||||||
|
|
Loading…
Reference in a new issue