Example #1
0
 override public void LeaveExceptionHandler(ExceptionHandler node)
 {
     if (null != node.Declaration.Type.Entity &&
         ((IType)node.Declaration.Type.Entity).FullName == "System.Exception" &&
         !string.IsNullOrEmpty(node.Declaration.Name))
     {
         if (null != NameResolutionService.ResolveTypeName(new SimpleTypeReference(node.Declaration.Name)))
         {
             Warnings.Add(CompilerWarningFactory.AmbiguousExceptionName(node));
         }
     }
 }