/// <summary> /// Exit a parse tree produced by <see cref="LuaParser.field" />. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public override void ExitField(LuaParser.FieldContext context) { switch (_currentScope) { case MMSavedVariableScope.EsoItem: if (CurrentItem != null) { LuaTableField itemField = GetField(context); if (itemField != null) { CurrentItem.Set(itemField); } } break; case MMSavedVariableScope.EsoGuildStoreSale: if (CurrentSale != null) { LuaTableField saleField = GetField(context); if (saleField != null) { CurrentSale.Set(saleField); } } break; } }