notify method
Implementation
StubbleResult? notify(NotifyMessage msg, StubbleContext context) {
switch (msg.type) {
case notifySecondCloseBracketFound:
return StubbleResult(
state: GetBlockEndState(
blockName: helper,
),
);
case notifyAttrResult:
_attributes.add(msg.value);
if (msg.charCode != null) {
return StubbleResult(
message: ProcessMessage(
charCode: msg.charCode!,
),
);
}
break;
case notifyBlockEndResult:
_body = msg.value;
return result(context);
default:
break;
}
return null;
}