public override Yarn.Type VisitExpMultDivModEquals(YarnSpinnerParser.ExpMultDivModEqualsContext context) { ParserRuleContext[] terms = { context.variable(), context.expression() }; // *, /, % all support numbers only return(CheckOperation(context, terms, context.op.Text, Yarn.Type.Number)); }
// *= /= %= public override int VisitExpMultDivModEquals(YarnSpinnerParser.ExpMultDivModEqualsContext context) { // call the helper to deal with this opEquals(context.variable().GetText(), context.expression(), context.op.Type); return(0); }