Replace 'body' with 'do'
The former is set to be deprecated in the next (2.091.0) DMD release.
This commit is contained in:
parent
da51958770
commit
d38c3d96bf
|
@ -565,7 +565,7 @@ private:
|
|||
{
|
||||
assert(currentIs(tok!"(") || currentIs(tok!"["));
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
immutable p = current.type;
|
||||
regenLineBreakHintsIfNecessary(index);
|
||||
|
@ -650,7 +650,7 @@ private:
|
|||
{
|
||||
assert(currentIs(tok!")"));
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
parenDepth--;
|
||||
indents.popWrapIndents();
|
||||
|
@ -685,7 +685,7 @@ private:
|
|||
{
|
||||
assert(currentIs(tok!"]"));
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
indents.popWrapIndents();
|
||||
if (indents.topIs(tok!"]"))
|
||||
|
@ -1715,7 +1715,7 @@ private:
|
|||
{
|
||||
assert(currentIs(tok!"("), str(current.type));
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
immutable int depth = parenDepth;
|
||||
immutable int startingNiBraceDepth = niBraceDepth;
|
||||
|
@ -1860,7 +1860,7 @@ const pure @safe @nogc:
|
|||
{
|
||||
assert(index < tokens.length);
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
return tokens[index];
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ in
|
|||
assert(balancedParens(pattern, '[', ']', 0));
|
||||
assert(balancedParens(pattern, '{', '}', 0));
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
alias RC = Unqual!(ElementEncodingType!Range);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ in
|
|||
{
|
||||
assert(tokens[0].type == tok!"(");
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
uint length = 0;
|
||||
size_t i = 1;
|
||||
|
|
Loading…
Reference in New Issue