File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Il2CppInterop.Generator/Contexts Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -219,9 +219,10 @@ private string ProduceMethodSignatureBase()
219
219
if ( method . IsStatic ) builder . Append ( "_Static" ) ;
220
220
if ( method . IsFinal ) builder . Append ( "_Final" ) ;
221
221
if ( method . IsNewSlot ) builder . Append ( "_New" ) ;
222
- foreach ( var ( semantic , str ) in SemanticsToCheck )
223
- if ( ( semantic & method . Semantics ? . Attributes ) != 0 )
224
- builder . Append ( str ) ;
222
+ if ( method . Semantics is not null )
223
+ foreach ( var ( semantic , str ) in SemanticsToCheck )
224
+ if ( ( semantic & method . Semantics ? . Attributes ) != 0 )
225
+ builder . Append ( str ) ;
225
226
226
227
builder . Append ( '_' ) ;
227
228
builder . Append ( DeclaringType . AssemblyContext . RewriteTypeRef ( method . Signature ? . ReturnType ) . GetUnmangledName ( ) ) ;
You can’t perform that action at this time.
0 commit comments