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(
state: GetBlockEndState(
blockName: 'with',
),
);
case notifyBlockEndResult:
_body = msg.value;
return result(context);
}
return null;
}