18 references to LambdaUtilities
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Query.cs (2)
689
Debug.Assert(
LambdaUtilities
.IsQueryPairLambda(node));
867
Debug.Assert(node is ExpressionSyntax ||
LambdaUtilities
.IsQueryPairLambda(node));
BoundTree\UnboundLambda.cs (2)
89
syntax is ExpressionSyntax &&
LambdaUtilities
.IsLambdaBody(syntax, allowReducedLambdas: true) || // query lambdas
90
LambdaUtilities
.IsQueryPairLambda(syntax) // "pair" lambdas in queries
CodeGen\CodeGenerator.cs (1)
176
int syntaxOffset = _method.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(bodySyntax), bodySyntax.SyntaxTree);
CodeGen\EmitStatement.cs (1)
1868
int syntaxOffset = _method.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(syntax), syntax.SyntaxTree);
Compiler\MethodCompiler.cs (1)
2213
if (!
LambdaUtilities
.TryGetLambdaBodies(node.Syntax, out var body1, out var body2))
Emitter\EditAndContinue\CSharpLambdaSyntaxFacts.cs (3)
18
=>
LambdaUtilities
.GetLambda(lambdaOrLambdaBodySyntax);
21
=>
LambdaUtilities
.TryGetCorrespondingLambdaBody(lambdaOrLambdaBodySyntax, previousLambdaSyntax);
24
=>
LambdaUtilities
.GetDeclaratorPosition(node);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
557
int syntaxOffset = _topLevelMethod.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(syntax), syntax.SyntaxTree);
Lowering\ClosureConversion\ClosureConversion.cs (3)
1467
else if (
LambdaUtilities
.IsQueryPairLambda(syntax))
1481
Debug.Assert(!isLambdaBody ||
LambdaUtilities
.IsLambdaBody(lambdaOrLambdaBodySyntax));
1506
int syntaxOffset = _topLevelMethod.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(lambdaOrLambdaBodySyntax), lambdaOrLambdaBodySyntax.SyntaxTree);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
101
if (
LambdaUtilities
.IsClosureScope(syntaxOpt))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
541
syntaxOffset = OriginalMethod.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(awaitSyntaxOpt), awaitSyntaxOpt.SyntaxTree);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
197
int syntaxOffset = method.CalculateLocalSyntaxOffset(
LambdaUtilities
.GetDeclaratorPosition(declaratorSyntax), declaratorSyntax.SyntaxTree);
Syntax\SyntaxFacts.cs (1)
440
return
LambdaUtilities
.IsLambdaBody(node);