75 references to IsByRef
ILCompiler.Compiler (31)
Compiler\Dataflow\HandleCallAction.cs (1)
423
if (staticType?.
IsByRef
== true)
Compiler\DependencyAnalysis\ByRefTypeMapNode.cs (1)
50
if (!type.
IsByRef
)
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (1)
85
if (type.
IsByRef
)
Compiler\TypePreinit.cs (3)
1864
if (locationType.IsGCPointer || locationType.
IsByRef
)
2150
if (locationType.
IsByRef
&& popped.Value is ByRefValueBase)
2192
if (!locationType.
IsByRef
Compiler\UserDefinedTypeDescriptor.cs (2)
47
if (type.
IsByRef
)
342
else if (type.
IsByRef
)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
269
if (parameterType.
IsByRef
)
376
if (typeArg.
IsByRef
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
83
if (!method.Signature[index].
IsByRef
)
103
=> type.
IsByRef
|| type.IsPointer;
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
151
else if (type.
IsByRef
)
parent\parent\Common\TypeSystem\IL\DelegateInfo.cs (2)
192
if (paramType.
IsByRef
)
200
if (returnType.
IsByRef
)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
84
if (param.
IsByRef
)
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
196
bool isByRefType = delegateSignature[i].
IsByRef
;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (5)
204
if (Signature[0].
IsByRef
)
543
if (paramType.
IsByRef
)
545
hasRefArgs |= paramType.
IsByRef
;
550
hasRefArgs |= paramType.
IsByRef
;
616
if (paramType.
IsByRef
)
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (3)
60
if (type.
IsByRef
)
161
if (!parameterType.
IsByRef
)
173
if (!returnType.
IsByRef
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
234
bool isByRef = type.
IsByRef
;
919
else if (underlyingType.
IsByRef
)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
958
if (parameterType.
IsByRef
)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (2)
271
marshaller.ManagedType = parameterType.
IsByRef
? parameterType.GetParameterType() : parameterType;
273
marshaller.IsManagedByRef = parameterType.
IsByRef
;
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
437
else if (type.
IsByRef
)
ILCompiler.ReadyToRun (17)
Compiler\DependencyAnalysis\ReadyToRun\TypeHandle.cs (1)
23
_isByRef = _type.
IsByRef
;
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
747
if (!ValidateVarianceInType(associatedTypeInstantiation, parameterizedType.ParameterType, (parameterizedType.
IsByRef
|| parameterizedType.IsPointer) ? Internal.TypeSystem.GenericVariance.None : position))
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
107
else if (fieldType.
IsByRef
|| fieldType.IsByRefLike)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
269
if (parameterType.
IsByRef
)
376
if (typeArg.
IsByRef
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
83
if (!method.Signature[index].
IsByRef
)
103
=> type.
IsByRef
|| type.IsPointer;
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1015
if (type.
IsByRef
)
2570
else if (fieldType.
IsByRef
)
3298
if (td.IsArray || td.
IsByRef
|| td.IsPointer)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
84
if (param.
IsByRef
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
234
bool isByRef = type.
IsByRef
;
919
else if (underlyingType.
IsByRef
)
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (2)
271
marshaller.ManagedType = parameterType.
IsByRef
? parameterType.GetParameterType() : parameterType;
273
marshaller.IsManagedByRef = parameterType.
IsByRef
;
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
437
else if (type.
IsByRef
)
PortableCallHelpers\PInvokeTableGenerator.cs (1)
406
if (!type.IsValueType || type.IsPointer || type.
IsByRef
|| type is FunctionPointerType)
ILCompiler.RyuJit (3)
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1015
if (type.
IsByRef
)
2570
else if (fieldType.
IsByRef
)
3298
if (td.IsArray || td.
IsByRef
|| td.IsPointer)
ILCompiler.TypeSystem (24)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (4)
145
if (thisType.
IsByRef
&& otherType.
IsByRef
)
164
if (thisType.
IsByRef
|| otherType.
IsByRef
||
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (1)
119
else if (type.
IsByRef
)
parent\parent\Common\TypeSystem\Common\ExplicitLayoutValidator.cs (1)
47
else if (fieldType.
IsByRef
)
parent\parent\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (1)
66
if (fieldType.IsGCPointer || fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.
IsByRef
)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (7)
40
if ((fieldType.
IsByRef
|| fieldType.IsByRefLike) && !type.IsByRefLike)
209
if (fieldType.
IsByRef
|| (fieldType.IsValueType && ((DefType)fieldType).IsByRefLike))
288
if (fieldType.
IsByRef
784
Debug.Assert(fieldType.IsPrimitive || fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.IsEnum || fieldType.
IsByRef
);
854
Debug.Assert(fieldType.IsPrimitive || fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.IsEnum || fieldType.
IsByRef
);
1176
Debug.Assert(fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.
IsByRef
);
1179
fieldData.HasAutoLayout = fieldType.
IsByRef
;
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (1)
178
if (arg.IsPointer || arg.
IsByRef
|| arg.IsGenericParameter || arg.IsVoid)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (9)
72
if (retType.IsVoid || retType.
IsByRef
|| !string.IsNullOrEmpty(name))
101
&& !firstArgType.
IsByRef
)
130
if (!retType.
IsByRef
133
&& !firstArgType.
IsByRef
))
231
TypeDesc targetType = targetTypeMaybe.
IsByRef
518
if (replacementType.
IsByRef
)
520
if (!initialType.
IsByRef
)
528
else if (initialType.
IsByRef
)
576
if (isReturnValue && initialType.
IsByRef
)