mark dyaml.parser.Parser.parseNode.get as @safe

This commit is contained in:
Cameron Ross 2018-03-23 20:58:08 -03:00 committed by BBasile
parent 6088f0b632
commit c1165b976e

View file

@ -432,7 +432,7 @@ final class Parser
uint tagHandleEnd;
//Get anchor/tag if detected. Return false otherwise.
bool get(const TokenID id, const Flag!"first" first, ref string target) @trusted
bool get(const TokenID id, const Flag!"first" first, ref string target) @safe
{
if(!scanner_.checkToken(id)){return false;}
invalidMarks = false;
@ -444,7 +444,7 @@ final class Parser
tagHandleEnd = token.valueDivider;
}
endMark = token.endMark;
target = cast(string)token.value;
target = token.value.idup;
return true;
}