1 instantiation of MethodArgumentInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\MethodArgumentInfo.cs (1)
37
return new
MethodArgumentInfo
(method, arguments: ImmutableArray<BoundExpression>.Empty, defaultArguments: default, expanded: false);
44 references to MethodArgumentInfo
Microsoft.CodeAnalysis.CSharp (44)
Binder\ForEachEnumeratorInfo.cs (9)
28
public readonly
MethodArgumentInfo
GetEnumeratorInfo;
30
public readonly
MethodArgumentInfo
MoveNextInfo;
43
public readonly
MethodArgumentInfo
? PatternDisposeInfo;
56
MethodArgumentInfo
getEnumeratorInfo,
58
MethodArgumentInfo
moveNextInfo,
62
MethodArgumentInfo
? patternDisposeInfo,
104
public
MethodArgumentInfo
? GetEnumeratorInfo;
106
public
MethodArgumentInfo
? MoveNextInfo;
111
public
MethodArgumentInfo
? PatternDisposeInfo;
Binder\ForEachLoopBinder.cs (13)
1152
builder.MoveNextInfo =
MethodArgumentInfo
.CreateParameterlessMethod(moveNextMethod);
1326
MethodArgumentInfo
getEnumeratorInfo;
1352
private
MethodArgumentInfo
FindForEachPatternMethod(SyntaxNode syntax, SyntaxNode collectionSyntax, TypeSymbol patternType, string methodName, LookupResult lookupResult, bool warningsOnly, BindingDiagnosticBag diagnostics, bool isAsync)
1408
MethodArgumentInfo
patternInfo = PerformForEachPatternOverloadResolution(syntax, collectionSyntax, patternType, candidateMethods, warningsOnly, diagnostics, isAsync);
1419
private
MethodArgumentInfo
PerformForEachPatternOverloadResolution(SyntaxNode syntax, SyntaxNode collectionSyntax, TypeSymbol patternType, ArrayBuilder<MethodSymbol> candidateMethods, bool warningsOnly, BindingDiagnosticBag diagnostics, bool isAsync)
1439
MethodArgumentInfo
info = null;
1497
private
MethodArgumentInfo
FindForEachPatternMethodViaExtension(SyntaxNode syntax, SyntaxNode collectionSyntax, BoundExpression collectionExpr, string methodName, BindingDiagnosticBag diagnostics)
1544
var
info = BindDefaultArguments(
1677
MethodArgumentInfo
moveNextMethodCandidate = FindForEachPatternMethod(syntax, collectionSyntax, enumeratorType,
1896
private
MethodArgumentInfo
GetParameterlessSpecialTypeMemberInfo(SpecialMember member, SyntaxNode syntax, BindingDiagnosticBag diagnostics)
1901
?
MethodArgumentInfo
.CreateParameterlessMethod(resolvedMember)
1906
private
MethodArgumentInfo
BindDefaultArguments(MethodSymbol method, BoundExpression extensionReceiverOpt, bool expanded, SyntaxNode syntax, BindingDiagnosticBag diagnostics)
1912
return
MethodArgumentInfo
.CreateParameterlessMethod(method);
Binder\MethodArgumentInfo.cs (1)
34
public static
MethodArgumentInfo
CreateParameterlessMethod(MethodSymbol method)
Binder\UsingStatementBinder.cs (2)
112
MethodArgumentInfo
? patternDisposeInfo;
184
bool bindDisposable(bool fromExpression, out
MethodArgumentInfo
? patternDisposeInfo, out TypeSymbol? awaitableType)
Generated\BoundNodes.xml.Generated.cs (6)
3476
public BoundUsingLocalDeclarations(SyntaxNode syntax,
MethodArgumentInfo
? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false)
3486
public
MethodArgumentInfo
? PatternDisposeInfoOpt { get; }
3492
public BoundUsingLocalDeclarations Update(
MethodArgumentInfo
? patternDisposeInfoOpt, BoundAwaitableInfo? awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations)
4118
public BoundUsingStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt,
MethodArgumentInfo
? patternDisposeInfoOpt, bool hasErrors = false)
4138
public
MethodArgumentInfo
? PatternDisposeInfoOpt { get; }
4143
public BoundUsingStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations? declarationsOpt, BoundExpression? expressionOpt, BoundStatement body, BoundAwaitableInfo? awaitOpt,
MethodArgumentInfo
? patternDisposeInfoOpt)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
153
MethodArgumentInfo
getEnumeratorInfo = enumeratorInfo.GetEnumeratorInfo;
359
var
disposeInfo = enumeratorInfo.PatternDisposeInfo;
363
disposeInfo =
MethodArgumentInfo
.CreateParameterlessMethod(disposeMethod);
538
private BoundExpression SynthesizeCall(
MethodArgumentInfo
methodArgumentInfo, CSharpSyntaxNode syntax, BoundExpression? receiver, bool allowExtensionAndOptionalParameters, BoundExpression? firstRewrittenArgument)
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
76
patternDisposeInfo:
MethodArgumentInfo
.CreateParameterlessMethod(lockTypeInfo.ScopeDisposeMethod));
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (6)
66
MethodArgumentInfo
? patternDisposeInfo,
212
MethodArgumentInfo
? patternDisposeInfo)
286
MethodArgumentInfo
? patternDisposeInfo)
438
MethodArgumentInfo
? disposeInfo,
470
disposeInfo =
MethodArgumentInfo
.CreateParameterlessMethod(disposeMethod);
492
private BoundExpression MakeCallWithNoExplicitArgument(
MethodArgumentInfo
methodArgumentInfo, SyntaxNode syntax, BoundExpression? expression, BoundExpression? firstRewrittenArgument)
Operations\CSharpOperationFactory.cs (2)
1932
ImmutableArray<IArgumentOperation> createArgumentOperations(
MethodArgumentInfo
? info)
2940
private ImmutableArray<IArgumentOperation> CreateDisposeArguments(
MethodArgumentInfo
patternDisposeInfo)