public AbcMethod Find(IMethod method) { var key = MemberKey.BuildKey(method); AbcMethod value; return(_cache.TryGetValue(key, out value) ? value : null); }
public void Add(AbcTrait trait) { string key = MemberKey.BuildKey(trait.Name); _cache.Add(key, trait.Method); }
public AbcInstance Find(IType type) { return(Find(MemberKey.FullName(type))); }
private static string KeyOf(ITypeMember member) { return(Prefix(KindOf(member)) + MemberKey.BuildKey(member)); }
private static string KeyOf(AbcTrait trait) { return(Prefix(trait.Kind) + MemberKey.BuildKey(trait.Name)); }