Merge pull request #467 from Geod24/fix-deps

Replace 'body' with 'do'
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
This commit is contained in:
The Dlang Bot 2020-02-04 03:36:42 +01:00 committed by GitHub
commit 399041c84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -565,7 +565,7 @@ private:
{ {
assert(currentIs(tok!"(") || currentIs(tok!"[")); assert(currentIs(tok!"(") || currentIs(tok!"["));
} }
body do
{ {
immutable p = current.type; immutable p = current.type;
regenLineBreakHintsIfNecessary(index); regenLineBreakHintsIfNecessary(index);
@ -650,7 +650,7 @@ private:
{ {
assert(currentIs(tok!")")); assert(currentIs(tok!")"));
} }
body do
{ {
parenDepth--; parenDepth--;
indents.popWrapIndents(); indents.popWrapIndents();
@ -685,7 +685,7 @@ private:
{ {
assert(currentIs(tok!"]")); assert(currentIs(tok!"]"));
} }
body do
{ {
indents.popWrapIndents(); indents.popWrapIndents();
if (indents.topIs(tok!"]")) if (indents.topIs(tok!"]"))
@ -1715,7 +1715,7 @@ private:
{ {
assert(currentIs(tok!"("), str(current.type)); assert(currentIs(tok!"("), str(current.type));
} }
body do
{ {
immutable int depth = parenDepth; immutable int depth = parenDepth;
immutable int startingNiBraceDepth = niBraceDepth; immutable int startingNiBraceDepth = niBraceDepth;
@ -1860,7 +1860,7 @@ const pure @safe @nogc:
{ {
assert(index < tokens.length); assert(index < tokens.length);
} }
body do
{ {
return tokens[index]; return tokens[index];
} }

View File

@ -12,7 +12,7 @@ import std.path : filenameCharCmp, isDirSeparator;
// * changes meaning to match all characters except '/' // * changes meaning to match all characters except '/'
// ** added to take over the old meaning of * // ** added to take over the old meaning of *
bool globMatchEditorConfig(CaseSensitive cs = CaseSensitive.osDefault, C, Range)( bool globMatchEditorConfig(CaseSensitive cs = CaseSensitive.osDefault, C, Range)(
Range path, const(C)[] pattern) @safe pure nothrow Range path, const(C)[] pattern) @safe pure nothrow
if (isForwardRange!Range && isSomeChar!(ElementEncodingType!Range) if (isForwardRange!Range && isSomeChar!(ElementEncodingType!Range)
&& isSomeChar!C && is(Unqual!C == Unqual!(ElementEncodingType!Range))) && isSomeChar!C && is(Unqual!C == Unqual!(ElementEncodingType!Range)))
in in
@ -23,7 +23,7 @@ in
assert(balancedParens(pattern, '[', ']', 0)); assert(balancedParens(pattern, '[', ']', 0));
assert(balancedParens(pattern, '{', '}', 0)); assert(balancedParens(pattern, '{', '}', 0));
} }
body do
{ {
alias RC = Unqual!(ElementEncodingType!Range); alias RC = Unqual!(ElementEncodingType!Range);

View File

@ -15,7 +15,7 @@ in
{ {
assert(tokens[0].type == tok!"("); assert(tokens[0].type == tok!"(");
} }
body do
{ {
uint length = 0; uint length = 0;
size_t i = 1; size_t i = 1;