File tree Expand file tree Collapse file tree
mdoc/Mono.Documentation/Updater Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -570,11 +570,19 @@ public static bool IsIgnored(MemberReference mi)
570570 private static bool IsCompilerGenerated ( MemberReference mi )
571571 {
572572 IMemberDefinition memberDefinition = mi . Resolve ( ) ;
573- return memberDefinition . IsSpecialName
573+ if ( memberDefinition != null )
574+ {
575+ return memberDefinition . IsSpecialName
574576 || memberDefinition . CustomAttributes . Any ( i =>
575577 i . AttributeType . FullName == Consts . CompilerGeneratedAttribute
576578 || i . AttributeType . FullName == Consts . CompilationMappingAttribute
577579 ) ;
580+ }
581+ else
582+ {
583+ MDocUpdater . Instance . Warning ( $ "IsIgnored->IsCompilerGenerated Unable to Resolve Member('{ mi . FullName } ')") ;
584+ return false ;
585+ }
578586 }
579587
580588 public static bool IsAvailablePropertyMethod ( MethodDefinition method )
You can’t perform that action at this time.
0 commit comments