//public SimplePTGNode(PTGID id, SimplePTGNodeKind kind = SimplePTGNodeKind.Null) // { // this.Id = id; // this.Kind = kind; // this.Variables = new HashSet<IVariable>(); // this.Sources = new MapSet<IFieldReference, SimplePTGNode>(); // this.Targets = new MapSet<IFieldReference, SimplePTGNode>(); // } public SimplePTGNode(PTGID id, ITypeReference type, SimplePTGNodeKind kind = SimplePTGNodeKind.Object) // : this(id, kind) { this.Id = id; this.Type = type; this.Kind = kind; this.Variables = new HashSet <IVariable>(); this.Sources = new MapSet <IFieldReference, SimplePTGNode>(); this.Targets = new MapSet <IFieldReference, SimplePTGNode>(); }
public ParameterNode(PTGID id, string parameter, ITypeReference type, SimplePTGNodeKind kind = SimplePTGNodeKind.Null) : base(id, type, SimplePTGNodeKind.Parameter) { this.Parameter = parameter; }
private SimplePTGNode NewNode(SimplePointsToGraph ptg, PTGID ptgID, ITypeReference type, SimplePTGNodeKind kind = SimplePTGNodeKind.Object) { SimplePTGNode node; node = new SimplePTGNode(ptgID, type, kind); //node = ptg.GetNode(ptgID, type, kind); return(node); }