directiveToken

fnToken directiveToken(const Mark start, const Mark end, char[] value, DirectiveType directive, const uint nameEnd) @safe pure nothrow @nogc

Construct a directive token.

Parameters

startStart position of the token.
endEnd position of the token.
valueValue of the token.
directiveDirective type (YAML or TAG in YAML 1.1).
nameEndPosition of the end of the name