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:
parent
f0521650d8
commit
5171925538
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue