public override void EnterAtomTableItem(MySqlParser.AtomTableItemContext context) { if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst) { Rules.Remove(Rules[Rules.Count - 1]); _isFirst = false; } }
public override void EnterAtomTableItem(MySqlParser.AtomTableItemContext context) { if (_isOtherListener == 1) { if (context.ChildCount > 1) { Rules.Remove(Rules[Rules.Count - 1]); } AtomTableItem atomTableItem = new AtomTableItem(context.SourceInterval, context, context.GetText()); Rules.Add(atomTableItem); } _isOtherListener++; }
public override void ExitAtomTableItem(MySqlParser.AtomTableItemContext context) { if (_isOtherListener == 1) { if (context.ChildCount > 1) { Rules.Remove(Rules[Rules.Count - 1]); } OuterJoin outerJoin = new OuterJoin(context.SourceInterval, context, context.GetText()); Rules.Add(outerJoin); } _isOtherListener--; }
public override void ExitAtomTableItem(MySqlParser.AtomTableItemContext context) { _isOtherListener--; }