File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public override void Populate(TextWriter trapFile)
8181 }
8282
8383 // Class location
84- if ( ! Symbol . IsGenericType || Symbol . IsReallyUnbound ( ) )
84+ if ( ( ! Symbol . IsGenericType || Symbol . IsReallyUnbound ( ) ) && Context . ExtractLocation ( Symbol ) )
8585 {
8686 WriteLocationsToTrap ( trapFile . type_location , this , Locations ) ;
8787 }
Original file line number Diff line number Diff line change @@ -26,9 +26,12 @@ public override void Populate(TextWriter trapFile)
2626 var parentNs = Namespace . Create ( Context , Symbol . TypeParameterKind == TypeParameterKind . Method ? Context . Compilation . GlobalNamespace : Symbol . ContainingNamespace ) ;
2727 trapFile . parent_namespace ( this , parentNs ) ;
2828
29- foreach ( var l in Symbol . Locations )
29+ if ( Context . ExtractLocation ( Symbol ) )
3030 {
31- WriteLocationToTrap ( trapFile . type_location , this , Context . CreateLocation ( l ) ) ;
31+ foreach ( var l in Symbol . Locations )
32+ {
33+ WriteLocationToTrap ( trapFile . type_location , this , Context . CreateLocation ( l ) ) ;
34+ }
3235 }
3336
3437 if ( IsSourceDeclaration )
You can’t perform that action at this time.
0 commit comments