public string GetStoreBufferEntry(string val_new, ArmadaPC pc) { var loc = GetStoreBufferLocation(); if (loc == null) { return(null); } return($"Armada_StoreBufferEntry({loc}, {AH.GetPrimitiveValueConstructorName(type)}({val_new}), {pc.ToString()})"); }
public Expression GetStoreBufferEntry(Expression val_new) { var loc = GetStoreBufferLocation(); if (loc == null) { return(null); } var primitive_value_constructor = AH.MakeNameSegment(AH.GetPrimitiveValueConstructorName(val_new.Type), "Armada_PrimitiveValue"); var boxed_val_new = AH.MakeApply1(primitive_value_constructor, val_new, "Armada_PrimitiveValue"); return(AH.MakeApply2("Armada_StoreBufferEntry", loc, boxed_val_new, "Armada_StoreBufferEntry")); }