public override void EnterTableSources(MySqlParser.TableSourcesContext context) { if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst) { Rules.Remove(Rules[Rules.Count - 1]); _isFirst = false; } }
public override void EnterTableSources(MySqlParser.TableSourcesContext context) { if (_isOtherListener == 1) { if (context.ChildCount > 1) { Rules.Remove(Rules[Rules.Count - 1]); } TableSources tableSources = new TableSources(context.SourceInterval, context, context.GetText()); Rules.Add(tableSources); } _isOtherListener++; }
public override void ExitTableSources(MySqlParser.TableSourcesContext context) { _isOtherListener--; }