Remove 'in' storage class from nextState delegate

The 'in' storage class on delegate should make it 'const scope',
but those delegates are stored within the function so cannot be 'scope'.
This commit is contained in:
Geod24 2020-07-29 18:26:41 +09:00 committed by Mathias LANG
parent f0521650d8
commit 5171925538

View file

@ -825,7 +825,7 @@ final class Parser
} }
///Parse a key in flow context. ///Parse a key in flow context.
Event parseFlowKey(in Event delegate() @safe nextState) @safe Event parseFlowKey(Event delegate() @safe nextState) @safe
{ {
const token = scanner_.front; const token = scanner_.front;
scanner_.popFront(); scanner_.popFront();
@ -848,7 +848,7 @@ final class Parser
} }
///Parse a mapping value in a flow context. ///Parse a mapping value in a flow context.
Event parseFlowValue(TokenID checkId, in Event delegate() @safe nextState) Event parseFlowValue(TokenID checkId, Event delegate() @safe nextState)
@safe @safe
{ {
if(scanner_.front.id == TokenID.value) if(scanner_.front.id == TokenID.value)