public static HLIndirectAddressLocation Create(HLLocation pAddress, HLType pType)
        {
            HLIndirectAddressLocation location = new HLIndirectAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pType.Definition, HLDomain.Host.InternFactory, pType.Definition)));

            location.mAddress = pAddress;
            return(location);
        }
示例#2
0
        public static HLTemporaryAddressLocation Create(HLTemporary pTemporary)
        {
            HLTemporaryAddressLocation location = new HLTemporaryAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pTemporary.Type.Definition, HLDomain.Host.InternFactory, pTemporary.Type.Definition)));

            location.mTemporary = pTemporary;
            return(location);
        }
        public static HLStaticFieldAddressLocation Create(HLField pStaticField)
        {
            HLStaticFieldAddressLocation location = new HLStaticFieldAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pStaticField.Type.Definition, HLDomain.Host.InternFactory, pStaticField.Type.Definition)));

            location.mStaticField = pStaticField;
            return(location);
        }
示例#4
0
        public static HLLocalAddressLocation Create(HLLocal pLocal)
        {
            HLLocalAddressLocation location = new HLLocalAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pLocal.Type.Definition, HLDomain.Host.InternFactory, pLocal.Type.Definition)));

            location.mLocal = pLocal;
            return(location);
        }
示例#5
0
        public static HLParameterAddressLocation Create(HLParameter pParameter)
        {
            HLParameterAddressLocation location = new HLParameterAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pParameter.Type.Definition, HLDomain.Host.InternFactory, pParameter.Type.Definition)));

            location.mParameter = pParameter;

            pParameter.RequiresAddressing = true;
            return(location);
        }
        public static HLArrayElementAddressLocation Create(HLLocation pInstance, HLLocation pIndex, HLType pElementType)
        {
            HLArrayElementAddressLocation location = new HLArrayElementAddressLocation(HLDomain.GetOrCreateType(MutableModelHelper.GetManagedPointerTypeReference(pElementType.Definition, HLDomain.Host.InternFactory, pElementType.Definition)));

            location.mInstance    = pInstance;
            location.mIndex       = pIndex;
            location.mElementType = pElementType;
            return(location);
        }
示例#7
0
 private static void Main(string[] pArguments)
 {
     HLDomain.Process(pArguments[0]);
 }