public ArrayAssignmentFrame(ArrayInstance <T> instance, Variable[] elements) { Elements = elements; Variable = new ServiceVariable(instance, this); ElementType = typeof(T); }
public ListAssignmentFrame(ListInstance <T> instance, Variable[] elements) : base(false) { ElementType = typeof(T); Variable = new ServiceVariable(instance, this); Elements = elements; }
public ArrayAssignmentFrame(ArrayInstance <T> instance, Variable[] elements) { Elements = elements; Variable = new ServiceVariable(instance, this); if (typeof(T).MustBeBuiltWithFunc()) { Variable.OverrideType(typeof(object[])); } ElementType = typeof(T); }
public void Add(ServiceVariable variable) { // TODO -- have to do more on naming too var index = AllFor(variable.Instance).Length + 1; if (index > 1) { variable.OverrideName(variable.Usage + "_" + index); } _cached.Add(variable); }
public ListAssignmentFrame(ListInstance <T> instance, Variable[] elements) : base(false) { ElementType = typeof(T); Variable = new ServiceVariable(instance, this); if (ElementType.MustBeBuiltWithFunc()) { Variable.OverrideType(typeof(object[])); } Elements = elements; }
public GetInstanceFrame(Instance instance) { Variable = new ServiceVariable(instance, this, ServiceDeclaration.ServiceType); _name = instance.Name; }