/// <summary> /// Add an annotation to the given node. /// </summary> internal void Add(SqlNode node, SqlNodeAnnotation annotation) { List<SqlNodeAnnotation> list = null; if (!this.annotationMap.TryGetValue(node, out list)) { list = new List<SqlNodeAnnotation>(); this.annotationMap[node]=list; } uniqueTypes[annotation.GetType()] = String.Empty; list.Add(annotation); }
/// <summary> /// Add an annotation to the given node. /// </summary> internal void Add(SqlNode node, SqlNodeAnnotation annotation) { List <SqlNodeAnnotation> list = null; if (!this.annotationMap.TryGetValue(node, out list)) { list = new List <SqlNodeAnnotation>(); this.annotationMap[node] = list; } uniqueTypes[annotation.GetType()] = String.Empty; list.Add(annotation); }