notify method
Implementation
StubbleResult? notify(NotifyMessage msg, StubbleContext context) {
switch (msg.type) {
case notifyPathResult:
_path = msg.value;
return StubbleResult(
message: ProcessMessage(
charCode: msg.charCode!,
),
);
case notifySecondCloseBracketFound:
return StubbleResult(
pop: true,
result: getResult(context),
);
default:
break;
}
return null;
}