Implemented interface member:
property
ReturnsVoid
Microsoft.CodeAnalysis.Symbols.IMethodSymbolInternal.ReturnsVoid
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)
170public 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)
474public override bool ReturnsVoid
Symbols\SignatureOnlyMethodSymbol.cs (1)
73public override bool ReturnsVoid { get { return _returnType.IsVoidType(); } }
Symbols\Source\LambdaSymbol.cs (1)
141public override bool ReturnsVoid
Symbols\Source\LocalFunctionSymbol.cs (1)
311public override bool ReturnsVoid => ReturnType.IsVoidType();
Symbols\Source\SourceMemberMethodSymbol.cs (1)
546public 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)
241public 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)
201public 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;
74 references to ReturnsVoid
Microsoft.CodeAnalysis.CSharp (37)
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)
2902{ RefKind: RefKind.None, ReturnsVoid: true } => method.ReturnsVoid,
Binder\Binder_Expressions.cs (2)
10479!original.ReturnsVoid && 11428!method.ReturnsVoid &&
Binder\Binder_Operators.cs (1)
3676return method.ParameterCount == parameterCount && method.ReturnsVoid && !method.IsVararg &&
Binder\Binder_Statements.cs (3)
641return method.ReturnsVoid || method.IsIterator || method.IsAsyncEffectivelyReturningTask(this.Compilation); 777else 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)
266if (op.ReturnsVoid || op.ParameterCount != 1 || op.ReturnType.TypeKind == TypeKind.Error)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
295if (op.ReturnsVoid || op.ParameterCount != 1)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
997if (op.ParameterCount != 2 || op.ReturnsVoid)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
793if (op.ParameterCount != 1 || op.ReturnsVoid)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3067Debug.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)
2255if (!method.ReturnsVoid) 4080if (!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)
1671catchHandlerOffset: (kickoffMethod.ReturnsVoid || isAsyncMainMoveNext) ? asyncCatchHandlerOffset : -1,
FlowAnalysis\FlowAnalysisPass.cs (1)
46if (method.ReturnsVoid || method.IsIterator || method.IsAsyncEffectivelyReturningTask(compilation))
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1346Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.ParameterCount == 1); 1506Debug.Assert(!method.ReturnsVoid);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
45returnsVoid: baseMethod.ReturnsVoid,
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
412!methodSymbol.ReturnsVoid ||
Symbols\MethodSymbolExtensions.cs (1)
153return method.IsAsync && method.ReturnsVoid;
Symbols\PublicModel\MethodSymbol.cs (1)
321bool IMethodSymbol.ReturnsVoid => _underlying.ReturnsVoid;
Symbols\ReducedExtensionMethodSymbol.cs (1)
476get { return _reducedFrom.ReturnsVoid; }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
738else if (!this.ReturnsVoid) 964if (!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;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenScriptTests.cs (1)
527Assert.True(((MethodSymbol)methodData.Method).ReturnsVoid);
CodeGen\CodeGenTupleTest.cs (1)
12859Assert.False(m1ToString.ReturnsVoid);
Emit\EmitMetadataTests.cs (2)
613Assert.True(ctor.ReturnsVoid); 634Assert.True(cctor.ReturnsVoid);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
14232Assert.True(deconstruct.ReturnsVoid);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
3519Assert.True(deconstruct.ReturnsVoid);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Symbols\CompilationCreationTests.cs (2)
2385Assert.True(foo2.ReturnsVoid); 2390Assert.False(bar.ReturnsVoid);
Symbols\IndexerTests.cs (1)
200Assert.True(setter.ReturnsVoid);
Symbols\Metadata\MetadataMemberTests.cs (3)
171Assert.True(ctor.ReturnsVoid); 219Assert.False(member1.ReturnsVoid); 327Assert.True(member1.ReturnsVoid);
Symbols\Metadata\PE\LoadCustomModifiers.cs (2)
79Assert.True(m5.ReturnsVoid); 110Assert.False(m7.ReturnsVoid);
Symbols\Metadata\PE\LoadingMethods.cs (7)
56Assert.True(localM1.ReturnsVoid); 61Assert.True(localM2.ReturnsVoid); 79Assert.False(localM3.ReturnsVoid); 83Assert.False(localM4.ReturnsVoid); 87Assert.True(localM5.ReturnsVoid); 141Assert.True(basicC1_M6.ReturnsVoid); 146Assert.True(basicC1_M6.ReturnsVoid);
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
87Assert.True(m5.ReturnsVoid); 121Assert.False(m7.ReturnsVoid);
Symbols\Source\CompletionTests.cs (1)
58Assert.False(f.ReturnsVoid);
Symbols\Source\CustomModifierCopyTests.cs (1)
448if (!method.ReturnsVoid)
Symbols\Source\MethodTests.cs (7)
39Assert.True(m.ReturnsVoid); 120Assert.True(m.ReturnsVoid); 144Assert.True(m.ReturnsVoid); 1190Assert.True(m2.ReturnsVoid); 1232Assert.True(m2.ReturnsVoid); 1284Assert.True(m2.ReturnsVoid); 1290Assert.True(m3.ReturnsVoid);
Symbols\Source\ModifierTests.cs (1)
52Assert.True(m1.ReturnsVoid);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (4)
Metadata\WinMdEventTests.cs (4)
3581Assert.False(addMethod.ReturnsVoid); 3587Assert.True(removeMethod.ReturnsVoid); 3612Assert.True(addMethod.ReturnsVoid); 3618Assert.True(removeMethod.ReturnsVoid);