Very minor Parser/Event @nogc/style.

This commit is contained in:
Ferdinand Majerech 2014-07-31 01:56:36 +02:00
parent 03d1183550
commit a23c41385a
2 changed files with 16 additions and 18 deletions

View file

@ -210,20 +210,18 @@ Event documentEndEvent(const Mark start, const Mark end, const bool explicit) pu
return result; return result;
} }
/** /// Construct a scalar event.
* Construct a scalar event. ///
* /// Params: start = Start position of the event in the file/stream.
* Params: start = Start position of the event in the file/stream. /// end = End position of the event in the file/stream.
* end = End position of the event in the file/stream. /// anchor = Anchor of the scalar, if any.
* anchor = Anchor of the scalar, if any. /// tag = Tag of the scalar, if specified.
* tag = Tag of the scalar, if specified. /// implicit = Should the tag be implicitly resolved?
* implicit = Should the tag be implicitly resolved? /// value = String value of the scalar.
* value = String value of the scalar. /// style = Scalar style.
* style = Scalar style.
*/
Event scalarEvent(const Mark start, const Mark end, const Anchor anchor, const Tag tag, Event scalarEvent(const Mark start, const Mark end, const Anchor anchor, const Tag tag,
const Tuple!(bool, bool) implicit, const string value, const Tuple!(bool, bool) implicit, const string value,
const ScalarStyle style = ScalarStyle.Invalid) pure @trusted nothrow const ScalarStyle style = ScalarStyle.Invalid) @safe pure nothrow @nogc
{ {
Event result; Event result;
result.value = value; result.value = value;

View file

@ -945,7 +945,7 @@ final class Parser
} }
///Return an empty scalar. ///Return an empty scalar.
Event processEmptyScalar(const Mark mark) const pure @safe nothrow Event processEmptyScalar(const Mark mark) @safe pure nothrow const @nogc
{ {
return scalarEvent(mark, mark, Anchor(), Tag(), tuple(true, false), ""); return scalarEvent(mark, mark, Anchor(), Tag(), tuple(true, false), "");
} }