public override void ExitCaseStmt([NotNull] XSharpParser.CaseStmtContext context) { // we have Count == 7 // 0 : DO // 1 : CASE // 2 : Eos // 3 : CaseBlock // 4 : END // 5 : CASE // 6 : Eos TagRegion(context, context.ChildCount - 2); }
public override void ExitCaseStmt([NotNull] XSharpParser.CaseStmtContext context) { checkMissingKeyword(context.CaseStmt?.Start, context, "CASE or OTHERWISE"); checkMissingKeyword(context.e, context, "END[CASE]"); }