Minor cleanup.
This commit is contained in:
parent
f11fbf3b36
commit
14a8e31fa5
|
@ -249,7 +249,7 @@ final class Scanner
|
||||||
|
|
||||||
/// Most scanning error messages have the same format; so build them with this
|
/// Most scanning error messages have the same format; so build them with this
|
||||||
/// function.
|
/// function.
|
||||||
string expected(T)(string expected, T found) @safe pure nothrow @nogc
|
string expected(T)(string expected, T found) @safe pure nothrow @nogc
|
||||||
{
|
{
|
||||||
return buildMsg("expected ", expected, ", but found ", found);
|
return buildMsg("expected ", expected, ", but found ", found);
|
||||||
}
|
}
|
||||||
|
@ -937,12 +937,9 @@ final class Scanner
|
||||||
|
|
||||||
// Scan directive name
|
// Scan directive name
|
||||||
reader_.sliceBuilder.begin();
|
reader_.sliceBuilder.begin();
|
||||||
{
|
scanDirectiveNameToSlice(startMark);
|
||||||
scope(failure) { reader_.sliceBuilder.finish(); }
|
throwIfError();
|
||||||
scanDirectiveNameToSlice(startMark);
|
const name = reader_.sliceBuilder.finish();
|
||||||
throwIfError();
|
|
||||||
}
|
|
||||||
const name = reader_.sliceBuilder.finish();
|
|
||||||
|
|
||||||
reader_.sliceBuilder.begin();
|
reader_.sliceBuilder.begin();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue