4 implementations of ReturnsByRef
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
43public abstract bool ReturnsByRef { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
323bool IMethodSymbol.ReturnsByRef => _underlying.ReturnsByRef;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1038Private ReadOnly Property IMethodSymbol_ReturnsByRef As Boolean Implements IMethodSymbol.ReturnsByRef
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
43public abstract bool ReturnsByRef { get; }
41 references to ReturnsByRef
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (1)
156 if (method.GetDynamicallyAccessedMemberTypesOnReturnType () != DynamicallyAccessedMemberTypes.None && !method.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef))
TrimAnalysis\FlowAnnotations.cs (1)
172 if (!method.OriginalDefinition.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef))
TrimAnalysis\TrimAnalysisVisitor.cs (2)
125 return method.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef) ? new MethodReturnValue (method, isNewObj: false) : value; 347 if (method.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef)) {
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
201method1.ReturnsByRef != method2.ReturnsByRef ||
Microsoft.CodeAnalysis.CSharp (3)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
355if (symbol.ReturnsByRef) 653if (symbol.ReturnsByRef)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
252if (invokeMethod.ReturnsByRef)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
278var refReturnMismatch = indexer.ReturnsByRef != invocation.TargetMethod.ReturnsByRef;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
59if (method.ReturnsByRef)
Microsoft.CodeAnalysis.CSharp.Features (3)
ExtractMethod\CSharpSelectionResult.StatementResult.cs (2)
88: (method.ReturnType, method.ReturnsByRef); 95: (method.ReturnType, method.ReturnsByRef);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
278var refReturnMismatch = indexer.ReturnsByRef != invocation.TargetMethod.ReturnsByRef;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\DelegateTests.cs (2)
830Assert.False(lambda.ReturnsByRef); 837Assert.False(lambda.ReturnsByRef);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
59if (method.ReturnsByRef)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2378=> oldMethod.ReturnsByRef == newMethod.ReturnsByRef &&
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
181If symbol.ReturnsByRef AndAlso Format.MemberOptions.IncludesOption(SymbolDisplayMemberOptions.IncludeRef) Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
123If invokeMethod.ReturnsByRef AndAlso Format.MemberOptions.IncludesOption(SymbolDisplayMemberOptions.IncludeRef) Then
Symbols\MethodSymbol.vb (1)
1038Private ReadOnly Property IMethodSymbol_ReturnsByRef As Boolean Implements IMethodSymbol.ReturnsByRef
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
160Not methodSymbol.ReturnsByRef AndAlso
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
160Not methodSymbol.ReturnsByRef AndAlso
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
262if (overriddenMethod.ReturnsByRef)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
201method1.ReturnsByRef != method2.ReturnsByRef ||
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
68if (method.ReturnsByRef || method.ReturnsByRefReadonly)
ComMethodInfo.cs (1)
78if (method.ReturnsByRef || method.ReturnsByRefReadonly)
VtableIndexStubGenerator.cs (1)
413if (method.ReturnsByRef || method.ReturnsByRefReadonly)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
357if (method.ReturnsByRef || method.ReturnsByRefReadonly)
JSImportGenerator.cs (1)
236if (method.ReturnsByRef || method.ReturnsByRefReadonly)
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
130if (method.ReturnsByRef || method.ReturnsByRefReadonly)
LibraryImportGenerator.cs (1)
560if (method.ReturnsByRef || method.ReturnsByRefReadonly)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
430if (method.ReturnsByRef || method.ReturnsByRefReadonly)
Microsoft.Interop.SourceGeneration (6)
MarshallerShape.cs (6)
220({ ReturnsByRef: true } or { ReturnsByRefReadonly: true }) 594.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false } 602.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false } 610.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false }); 671({ ReturnsByRef: true } or { ReturnsByRefReadonly: true }) 680({ ReturnsByRef: true } or { ReturnsByRefReadonly: true }));