diff --git a/source/dyaml/dumper.d b/source/dyaml/dumper.d index a613af2..4f3be4b 100644 --- a/source/dyaml/dumper.d +++ b/source/dyaml/dumper.d @@ -118,7 +118,7 @@ struct Dumper(Range) { assert(indent != 0, "Can't use zero YAML indent width"); } - body + do { indent_ = indent; } diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index fbae846..7ab4a06 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -195,7 +195,7 @@ struct Loader { assert(!done_, "Loader: Trying to load YAML twice"); } - body + do { try { @@ -258,7 +258,7 @@ struct Loader { assert(!done_, "Loader: Trying to load YAML twice"); } - body + do { scope(exit) { done_ = true; } try diff --git a/source/dyaml/node.d b/source/dyaml/node.d index dfbab19..ca2d04a 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -414,7 +414,7 @@ struct Node "Lengths of keys and values arrays to construct " ~ "a YAML node from don't match"); } - body + do { tag_ = tag; diff --git a/source/dyaml/test/common.d b/source/dyaml/test/common.d index f0eb00c..f5a3976 100644 --- a/source/dyaml/test/common.d +++ b/source/dyaml/test/common.d @@ -142,7 +142,7 @@ string[][string] findTestFilenames(const string dir) @trusted */ void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings) in{assert(F.length == strings.length);} -body +do { tuple[index] = strings[index]; static if(index > 0){stringsToTuple!(index - 1, F)(tuple, strings);}