23 references to IsVoidType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Statements.cs (1)
1025
if (declTypeOpt.
IsVoidType
())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1467
if (returnType.IsDefault || returnType.
IsVoidType
())
BoundTree\UnboundLambda.cs (2)
323
if (!bestResultType.HasType || bestResultType.
IsVoidType
())
866
!returnType.
IsVoidType
() &&
FlowAnalysis\NullableWalker.cs (1)
2987
if (returnType.
IsVoidType
())
Symbols\ConstraintsHelper.cs (1)
935
if (typeArgument.Type.IsPointerOrFunctionPointer() || typeArgument.IsRestrictedType(ignoreSpanLikeTypes: true) || typeArgument.
IsVoidType
())
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
73
if (returnType.
IsVoidType
() && refKind != RefKind.None)
766
public override bool ReturnsVoid => ReturnTypeWithAnnotations.
IsVoidType
();
Symbols\MemberSignatureComparer.cs (2)
582
var isVoid1 = unsubstitutedReturnType1.
IsVoidType
();
583
var isVoid2 = unsubstitutedReturnType2.
IsVoidType
();
Symbols\SignatureOnlyMethodSymbol.cs (1)
73
public override bool ReturnsVoid { get { return _returnType.
IsVoidType
(); } }
Symbols\Source\LocalFunctionSymbol.cs (1)
287
|| !returnType.
IsVoidType
()
Symbols\Source\ParameterHelpers.cs (1)
98
if (parameterType.
IsVoidType
())
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
31
methodKind, refKind, declarationModifiers, returnType.
IsVoidType
(), returnsVoidIsSet: true, isExpressionBodied: false,
Symbols\Source\SourceLocalSymbol.cs (1)
365
!inferredType.
IsVoidType
())
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
46
this.SetReturnsVoid(_lazyReturnType.
IsVoidType
());
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
153
Debug.Assert(this.RefKind == RefKind.None || !returnType.
IsVoidType
() || returnTypeSyntax.HasErrors);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
288
else if (!_lazyReturnType.
IsVoidType
())
Symbols\Source\SourcePropertySymbol.cs (1)
584
if (type.
IsVoidType
())
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
450
Debug.Assert(returnType.
IsVoidType
());
539
Debug.Assert(!returnType.
IsVoidType
());
Symbols\Synthesized\SynthesizedLocal.cs (1)
49
Debug.Assert(!type.
IsVoidType
());
Symbols\TypeUnification.cs (1)
185
if (t2.Type.IsPointerOrFunctionPointer() || t2.
IsVoidType
())