Пример #1
0
        //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>();
        }
Пример #2
0
 public JSonNode(PTGID id, ITypeReference oType) : base(id, oType, SimplePTGNodeKind.Json)
 {
     this.ObjectType = oType;
 }
Пример #3
0
 public DelegateNode(PTGID id, IMethodReference method, IVariable instance) : base(id, method.Type, SimplePTGNodeKind.Delegate)
 {
     this.Method   = method;
     this.Instance = instance;
     this.IsStatic = instance == null;
 }
Пример #4
0
 public ParameterNode(PTGID id, string parameter, ITypeReference type, SimplePTGNodeKind kind = SimplePTGNodeKind.Null) : base(id, type, SimplePTGNodeKind.Parameter)
 {
     this.Parameter = parameter;
 }