mark dyaml.parser.Parser.parseNode.get as @safe
This commit is contained in:
parent
6088f0b632
commit
c1165b976e
|
@ -432,7 +432,7 @@ final class Parser
|
||||||
uint tagHandleEnd;
|
uint tagHandleEnd;
|
||||||
|
|
||||||
//Get anchor/tag if detected. Return false otherwise.
|
//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;}
|
if(!scanner_.checkToken(id)){return false;}
|
||||||
invalidMarks = false;
|
invalidMarks = false;
|
||||||
|
@ -444,7 +444,7 @@ final class Parser
|
||||||
tagHandleEnd = token.valueDivider;
|
tagHandleEnd = token.valueDivider;
|
||||||
}
|
}
|
||||||
endMark = token.endMark;
|
endMark = token.endMark;
|
||||||
target = cast(string)token.value;
|
target = token.value.idup;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue