More @nogc in Scanner.

This commit is contained in:
Ferdinand Majerech 2014-07-29 23:08:03 +02:00
parent 18be6b2e5b
commit 8806cfc1b4

View file

@ -1211,7 +1211,7 @@ final class Scanner
/// Scan a block scalar token with specified style.
///
/// In case of an error, error_ is set. Use throwIfError() to handle this.
Token scanBlockScalar(const ScalarStyle style) @trusted pure nothrow
Token scanBlockScalar(const ScalarStyle style) @trusted pure nothrow @nogc
{
const startMark = reader_.mark;
@ -1494,7 +1494,7 @@ final class Scanner
/// Scan a qouted flow scalar token with specified quotes.
///
/// In case of an error, error_ is set. Use throwIfError() to handle this.
Token scanFlowScalar(const ScalarStyle quotes) @trusted pure nothrow
Token scanFlowScalar(const ScalarStyle quotes) @trusted pure nothrow @nogc
{
const startMark = reader_.mark;
const quote = reader_.get();
@ -1715,7 +1715,7 @@ final class Scanner
/// Scan plain scalar token (no block, no quotes).
///
/// In case of an error, error_ is set. Use throwIfError() to handle this.
Token scanPlain() @trusted pure nothrow
Token scanPlain() @trusted pure nothrow @nogc
{
// We keep track of the allowSimpleKey_ flag here.
// Indentation rules are loosed for the flow context