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