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