Exemplo n.º 1
0
        public string GetMethodName(MethodDef metDef, out string unitName)
        {
            MethodX metX     = GenContext.TypeMgr.ResolveMethodDef(metDef);
            string  typeName = GenContext.GetTypeName(metX.DeclType);

            unitName = TransMap[typeName];
            return(GenContext.GetMethodName(metX, MethodGenerator.PrefixMet));
        }
Exemplo n.º 2
0
        private void AppendRuntimeFlags(MethodX metX, CodePrinter prt)
        {
            string typeName = metX.DeclType.GetNameKey();

            if (typeName == "il2cpprt.ThrowHelper")
            {
                prt.AppendFormatLine("#define IL2CPP_BRIDGE_HAS_{0}",
                                     GenContext.GetMethodName(metX, null));
            }
        }