24 overrides of ReturnsVoid
Microsoft.CodeAnalysis.CSharp (24)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
130public override bool ReturnsVoid
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
48public override bool ReturnsVoid
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
33public override bool ReturnsVoid
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
37public override bool ReturnsVoid
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
34public override bool ReturnsVoid
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
37public override bool ReturnsVoid
Symbols\ErrorMethodSymbol.cs (1)
168public override bool ReturnsVoid
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
766public override bool ReturnsVoid => ReturnTypeWithAnnotations.IsVoidType();
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
632public override bool ReturnsVoid => this.ReturnType.IsVoidType();
Symbols\ReducedExtensionMethodSymbol.cs (1)
472public override bool ReturnsVoid
Symbols\SignatureOnlyMethodSymbol.cs (1)
73public override bool ReturnsVoid { get { return _returnType.IsVoidType(); } }
Symbols\Source\LambdaSymbol.cs (1)
140public override bool ReturnsVoid
Symbols\Source\LocalFunctionSymbol.cs (1)
305public override bool ReturnsVoid => ReturnType.IsVoidType();
Symbols\Source\SourceMemberMethodSymbol.cs (1)
518public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
153public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
140public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
239public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
64public sealed override bool ReturnsVoid
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
183public sealed override bool ReturnsVoid
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
139public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
200public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
173public override bool ReturnsVoid
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
181public override bool ReturnsVoid
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
320public sealed override bool ReturnsVoid => UnderlyingMethod.ReturnsVoid;
35 references to ReturnsVoid
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Await.cs (2)
184info = method.ReturnsVoid ? 351getAwaiterMethod.ReturnsVoid) // If GetAwaiter returns void, don't bother checking that it returns an Awaiter.
Binder\Binder_Conversions.cs (2)
2891{ RefKind: RefKind.None, ReturnsVoid: true } => method.ReturnsVoid,
Binder\Binder_Expressions.cs (2)
10132!original.ReturnsVoid && 11034!method.ReturnsVoid &&
Binder\Binder_Statements.cs (3)
639return method.ReturnsVoid || method.IsIterator || method.IsAsyncEffectivelyReturningTask(this.Compilation); 775else if ((!hasAwait && disposeMethod?.ReturnsVoid == false) 1337patternMethodSymbol.ReturnsVoid ||
Binder\LockBinder.cs (2)
80if (enterScopeMethod is not { ReturnsVoid: false, RefKind: RefKind.None }) 95if (disposeMethod is not { ReturnsVoid: true })
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (1)
262if (op.ReturnsVoid || op.ParameterCount != 1 || op.ReturnType.TypeKind == TypeKind.Error)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
292if (op.ReturnsVoid || op.ParameterCount != 1)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
964if (op.ParameterCount != 2 || op.ReturnsVoid)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
520if (op.ParameterCount != 1 || op.ReturnsVoid)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3039Debug.Assert(!target.DelegateInvokeMethod.ReturnsVoid);
CodeGen\CodeGenerator.cs (2)
168Debug.Assert(!_method.ReturnsVoid, "returning something from void method?"); 311Debug.Assert(_method.ReturnsVoid == (_returnTemp == null));
CodeGen\EmitExpression.cs (2)
2239if (!method.ReturnsVoid) 4046if (!method.ReturnsVoid)
Compiler\MethodBodySynthesizer.cs (1)
607baseTypeMethod.ReturnsVoid) // NOTE: not checking for virtual
Compiler\MethodBodySynthesizer.Lowered.cs (1)
469return F.CurrentFunction.ReturnsVoid
Compiler\MethodCompiler.cs (1)
1563catchHandlerOffset: (kickoffMethod.ReturnsVoid || isAsyncMainMoveNext) ? asyncCatchHandlerOffset : -1,
FlowAnalysis\FlowAnalysisPass.cs (1)
46if (method.ReturnsVoid || method.IsIterator || method.IsAsyncEffectivelyReturningTask(compilation))
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1344Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.ParameterCount == 1); 1504Debug.Assert(!method.ReturnsVoid);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
44returnsVoid: baseMethod.ReturnsVoid,
Symbols\MethodSymbolExtensions.cs (1)
151return method.IsAsync && method.ReturnsVoid;
Symbols\PublicModel\MethodSymbol.cs (1)
321bool IMethodSymbol.ReturnsVoid => _underlying.ReturnsVoid;
Symbols\ReducedExtensionMethodSymbol.cs (1)
474get { return _reducedFrom.ReturnsVoid; }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
734else if (!this.ReturnsVoid) 960if (!IsStatic || ParameterCount > 0 || !ReturnsVoid || IsAbstract || IsVirtual)
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
66get { return _interfaceMethod.ReturnsVoid; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
177return _overriddenAccessor.ReturnsVoid;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
320public sealed override bool ReturnsVoid => UnderlyingMethod.ReturnsVoid;