add scope to some emitter functions that need it
This commit is contained in:
parent
74481bdef9
commit
7c39a2db82
|
@ -230,7 +230,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
|
||||||
}
|
}
|
||||||
|
|
||||||
///Write a string to the file/stream.
|
///Write a string to the file/stream.
|
||||||
void writeString(const char[] str) @safe
|
void writeString(const scope char[] str) @safe
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -1227,7 +1227,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
|
||||||
void writeStreamEnd() @safe {}
|
void writeStreamEnd() @safe {}
|
||||||
|
|
||||||
///Write an indicator (e.g. ":", "[", ">", etc.).
|
///Write an indicator (e.g. ":", "[", ">", etc.).
|
||||||
void writeIndicator(const char[] indicator,
|
void writeIndicator(const scope char[] indicator,
|
||||||
const Flag!"needWhitespace" needWhitespace,
|
const Flag!"needWhitespace" needWhitespace,
|
||||||
const Flag!"whitespace" whitespace = No.whitespace,
|
const Flag!"whitespace" whitespace = No.whitespace,
|
||||||
const Flag!"indentation" indentation = No.indentation) @safe
|
const Flag!"indentation" indentation = No.indentation) @safe
|
||||||
|
@ -1272,7 +1272,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
|
||||||
}
|
}
|
||||||
|
|
||||||
///Start new line.
|
///Start new line.
|
||||||
void writeLineBreak(const char[] data = null) @safe
|
void writeLineBreak(const scope char[] data = null) @safe
|
||||||
{
|
{
|
||||||
whitespace_ = indentation_ = true;
|
whitespace_ = indentation_ = true;
|
||||||
++line_;
|
++line_;
|
||||||
|
|
Loading…
Reference in a new issue