public MapSet <IFieldReference, SimplePTGNode> GetTargets(SimplePTGNode source) { //var result = new MapSet<IFieldReference, SimplePTGNode>(); //foreach (var edge in this.edges.Where(kv => kv.Key.Source.Equals(SimplePTGNode))) //{ // result.AddRange(edge.Key.Field, edge.Value); //} //return result; var result = new MapSet <IFieldReference, SimplePTGNode>(); if (this.edges.ContainsKey(source)) { foreach (var nodeField in this.edges[source]) { result.Add(nodeField.Field, nodeField.Node); } } return(result); }
public static void AddAnalysisReason(AnalysisReason reason) { AnalysisReasons.Add(CurrentScript, reason); }
public void Add(IVariable variable) { variables.Add(variable); }
public void Add(IVariable variable) { roots.Add(variable); }