File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Utilities/Compiler/Extensions Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -294,10 +294,12 @@ public static bool IsAttribute(this ITypeSymbol symbol)
294294 public static bool HasValueCopySemantics ( this ITypeSymbol typeSymbol )
295295 => typeSymbol . IsValueType || typeSymbol . SpecialType == SpecialType . System_String ;
296296
297+ #if ! MICROSOFT_CODEANALYSIS_PUBLIC_API_ANALYZERS
297298 public static bool HasReferenceTypeSemantics ( [ NotNullWhen ( returnValue : true ) ] this ITypeSymbol ? typeSymbol )
298299 => typeSymbol . IsReferenceTypeOrNullableValueType ( ) ||
299300 typeSymbol ? . IsRefLikeType == true ||
300301 typeSymbol is ITypeParameterSymbol typeParameter && ! typeParameter . IsValueType ;
302+ #endif
301303
302304 public static bool IsNonNullableValueType ( [ NotNullWhen ( returnValue : true ) ] this ITypeSymbol ? typeSymbol )
303305 => typeSymbol != null && typeSymbol . IsValueType && typeSymbol . OriginalDefinition . SpecialType != SpecialType . System_Nullable_T ;
You can’t perform that action at this time.
0 commit comments