Exemple #1
0
        private TypeTrace ResolveTypeTrace(CST.TypeDef typeDef)
        {
            var name      = typeDef.EffectiveName(Parent.Parent.Env.Global);
            var typeTrace = default(TypeTrace);

            if (!TypeMap.TryGetValue(name, out typeTrace))
            {
                typeTrace = new TypeTrace(this, typeDef);
                TypeMap.Add(name, typeTrace);
            }
            return(typeTrace);
        }
Exemple #2
0
 public string ResolveTypeDefToSlot(CST.AssemblyDef assemblyDef, CST.TypeDef typeDef)
 {
     return(AssemblyMappingFor(assemblyDef).ResolveTypeDefinitionToSlot(typeDef.EffectiveName(env.Global)));
 }