public virtual void Visit(WValuesInsertSource node) { node.AcceptChildren(this); }
private WInsertSource ParseInsertSource(InsertSource insSource) { if (insSource == null) return null; WInsertSource winsSouce = null; switch (insSource.GetType().Name) { case "SelectInsertSource": { var selInsSource = insSource as SelectInsertSource; var wselInsSource = new WSelectInsertSource { Select = ParseSelectQueryStatement(selInsSource.Select), FirstTokenIndex = selInsSource.FirstTokenIndex, LastTokenIndex = selInsSource.LastTokenIndex }; winsSouce = wselInsSource; break; } case "ValuesInsertSource": { var valInsSource = insSource as ValuesInsertSource; var wvalInsSource = new WValuesInsertSource { IsDefaultValues = valInsSource.IsDefaultValues, RowValues = new List<WRowValue>(valInsSource.RowValues.Count), FirstTokenIndex = valInsSource.FirstTokenIndex, LastTokenIndex = valInsSource.LastTokenIndex }; foreach (var rowValue in valInsSource.RowValues) { wvalInsSource.RowValues.Add(ParseRowValue(rowValue)); } winsSouce = wvalInsSource; break; } } return winsSouce; }