Ejemplo n.º 1
0
 private void Log_implicitly_creating_member(string kind, MemberReference forMember)
 {
     Log.Information("Implicitly creating {0:l} for: {1:l}.", kind,forMember.UserFriendlyName());
 }
Ejemplo n.º 2
0
 private void Log_creating_member(string kind, MemberReference forMember)
 {
     Log.Debug("Creating {0:l} for: {1:l}", kind, forMember.UserFriendlyName());
 }
Ejemplo n.º 3
0
 private void Log_duplicate_member(string kind, MemberReference newMember, MemberReference oldMember)
 {
     Log.Warning("Conflict between {0:l}s: {1:l}, and {2:l}.", kind, newMember.UserFriendlyName(), oldMember.UserFriendlyName());
 }
Ejemplo n.º 4
0
 private void LogFailedToRemove(string memberType, MemberReference memberRef)
 {
     Log.Warning("Tried to remove a {type:l} for {fullName:l}, but couldn't find it. This can be expected if you're both removing and adding the member at the same time.", memberType, memberRef.UserFriendlyName());
 }
Ejemplo n.º 5
0
 public static PatchDeclerationException Multiple_action_attributes(MemberReference yourMember, object[] attributes)
 {
     return new PatchDeclerationException($"The member {yourMember.UserFriendlyName()} has more than one action attribute: {attributes.Select(x => x.GetType().Name).Join(", ")}");
 }
Ejemplo n.º 6
0
 private void Log_trying_to_fix_disabled_reference(string kind, MemberReference badMemberRef)
 {
     Log.Warning("Trying to fix {0} reference to {1}, but it has the DisablePatching attribute.", kind,
         badMemberRef.UserFriendlyName());
 }
Ejemplo n.º 7
0
 private void Log_fixing_reference(string kind, MemberReference badMemberRef)
 {
     Log.Verbose("Trying to fix {0} reference for: {1}", kind, badMemberRef.UserFriendlyName());
 }
Ejemplo n.º 8
0
 private void Log_fixed_reference(string kind, MemberReference oldMemberRef, MemberReference fixedMemberRef)
 {
     Log.Verbose("Fixed {0} reference: {1} ⇒ {2}", kind, oldMemberRef.UserFriendlyName(),
         fixedMemberRef.UserFriendlyName());
 }