275 references to ArrowExpressionClause
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Expressions.cs (2)
941case SyntaxKind.ArrowExpressionClause: 11553case SyntaxKind.ArrowExpressionClause:
Binder\Binder_Statements.cs (1)
3580return new BoundBlock(node, locals, ImmutableArray.Create(statement)) { WasCompilerGenerated = node.Kind() != SyntaxKind.ArrowExpressionClause };
Binder\ExpressionVariableFinder.cs (1)
38case SyntaxKind.ArrowExpressionClause:
Compilation\MemberSemanticModel.cs (2)
318else if (kind == SyntaxKind.ArrowExpressionClause) 1590case SyntaxKind.ArrowExpressionClause:
Compilation\MethodBodySemanticModel.cs (1)
78case SyntaxKind.ArrowExpressionClause:
Compilation\SyntaxTreeSemanticModel.cs (1)
1180case SyntaxKind.ArrowExpressionClause:
Compiler\MethodBodySynthesizer.cs (1)
533Debug.Assert(syntax.Kind() == SyntaxKind.Block || syntax.Kind() == SyntaxKind.ArrowExpressionClause);
FlowAnalysis\FlowAnalysisPass.cs (1)
199syntax.IsKind(SyntaxKind.ArrowExpressionClause) ||
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
424case SyntaxKind.ArrowExpressionClause:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
222case SyntaxKind.ArrowExpressionClause: 438case SyntaxKind.ArrowExpressionClause:
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
743case SyntaxKind.ArrowExpressionClause:
Syntax.xml.Internal.Generated.cs (4)
32426var cached = CSharpSyntaxNodeCache.TryGetNode((int)SyntaxKind.ArrowExpressionClause, arrowToken, expression, this.context, out hash); 32429var result = new ArrowExpressionClauseSyntax(SyntaxKind.ArrowExpressionClause, arrowToken, expression, this.context); 37793var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.ArrowExpressionClause, arrowToken, expression, out hash); 37796var result = new ArrowExpressionClauseSyntax(SyntaxKind.ArrowExpressionClause, arrowToken, expression);
Syntax.xml.Syntax.Generated.cs (1)
13166/// <item><description><see cref="SyntaxKind.ArrowExpressionClause"/></description></item>
Syntax\LambdaUtilities.cs (3)
57if (lambda.IsKind(SyntaxKind.ArrowExpressionClause)) 161case SyntaxKind.ArrowExpressionClause: 395case SyntaxKind.ArrowExpressionClause: // expression-bodied member
Syntax\SyntaxEquivalence.cs (1)
158case SyntaxKind.ArrowExpressionClause:
Syntax\SyntaxExtensions.cs (1)
28case SyntaxKind.ArrowExpressionClause:
Syntax\SyntaxNodeExtensions.cs (1)
94case SyntaxKind.ArrowExpressionClause:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
102else if (objectCreation.Parent.IsKind(SyntaxKind.ArrowExpressionClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
569case SyntaxKind.ArrowExpressionClause:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
101if (nodeParent.IsKind(SyntaxKind.ArrowExpressionClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
101SyntaxKind.ArrowExpressionClause or 171case SyntaxKind.ArrowExpressionClause:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
260if (node.IsParentKind(SyntaxKind.ArrowExpressionClause) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
276if (currentNode.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.DelegateDeclaration or SyntaxKind.ArrowExpressionClause) 388case SyntaxKind.ArrowExpressionClause:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
823}, ImmutableArray.Create(SyntaxKind.ArrowExpressionClause));
Microsoft.CodeAnalysis.CSharp.Features (21)
ChangeSignature\CSharpChangeSignatureService.cs (1)
202current.Kind() == SyntaxKind.Block || current.Kind() == SyntaxKind.ArrowExpressionClause)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
116var parent => parent.IsKind(SyntaxKind.ArrowExpressionClause),
EditAndContinue\BreakpointSpans.cs (1)
972case SyntaxKind.ArrowExpressionClause:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
149case SyntaxKind.ArrowExpressionClause: 444return parent.IsKind(SyntaxKind.ArrowExpressionClause) && parent.Parent.IsKind(SyntaxKind.LocalFunctionStatement) ? parent.Parent : parent; 583case SyntaxKind.ArrowExpressionClause: 1752case SyntaxKind.ArrowExpressionClause: 2107case SyntaxKind.ArrowExpressionClause: 2767case SyntaxKind.ArrowExpressionClause:
EditAndContinue\SyntaxComparer.cs (3)
634case SyntaxKind.ArrowExpressionClause: 738ignoreChildFunction = childKind => childKind == SyntaxKind.Block || childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind); 1479case SyntaxKind.ArrowExpressionClause:
EditAndContinue\SyntaxUtilities.cs (1)
215if (declaration.IsKind(SyntaxKind.ArrowExpressionClause))
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
70else if (node.IsKind(SyntaxKind.ArrowExpressionClause))
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
102else if (objectCreation.Parent.IsKind(SyntaxKind.ArrowExpressionClause))
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
260if (node.IsParentKind(SyntaxKind.ArrowExpressionClause) &&
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
222case SyntaxKind.ArrowExpressionClause: 438case SyntaxKind.ArrowExpressionClause:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (3)
57if (lambda.IsKind(SyntaxKind.ArrowExpressionClause)) 161case SyntaxKind.ArrowExpressionClause: 395case SyntaxKind.ArrowExpressionClause: // expression-bodied member
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (210)
Parsing\AsyncParsingTests.cs (3)
2401N(SyntaxKind.ArrowExpressionClause); 2504N(SyntaxKind.ArrowExpressionClause); 2625N(SyntaxKind.ArrowExpressionClause);
Parsing\CollectionExpressionParsingTests.cs (3)
16880N(SyntaxKind.ArrowExpressionClause); 16989N(SyntaxKind.ArrowExpressionClause); 17065N(SyntaxKind.ArrowExpressionClause);
Parsing\DeclarationParsingTests.cs (11)
3018N(SyntaxKind.ArrowExpressionClause); 6484N(SyntaxKind.ArrowExpressionClause); 6510N(SyntaxKind.ArrowExpressionClause); 6537N(SyntaxKind.ArrowExpressionClause); 6568N(SyntaxKind.ArrowExpressionClause); 11493N(SyntaxKind.ArrowExpressionClause); 11680N(SyntaxKind.ArrowExpressionClause); 11961N(SyntaxKind.ArrowExpressionClause); 12027N(SyntaxKind.ArrowExpressionClause); 12086N(SyntaxKind.ArrowExpressionClause); 12145N(SyntaxKind.ArrowExpressionClause);
Parsing\DeclarationScopeParsingTests.cs (4)
259N(SyntaxKind.ArrowExpressionClause); 332N(SyntaxKind.ArrowExpressionClause); 361N(SyntaxKind.ArrowExpressionClause); 453N(SyntaxKind.ArrowExpressionClause);
Parsing\ExtensionsParsingTests.cs (3)
3378N(SyntaxKind.ArrowExpressionClause); 3479N(SyntaxKind.ArrowExpressionClause); 3565N(SyntaxKind.ArrowExpressionClause);
Parsing\FieldKeywordParsingTests.cs (26)
139N(SyntaxKind.ArrowExpressionClause); 187N(SyntaxKind.ArrowExpressionClause); 364N(SyntaxKind.ArrowExpressionClause); 427N(SyntaxKind.ArrowExpressionClause); 869N(SyntaxKind.ArrowExpressionClause); 919N(SyntaxKind.ArrowExpressionClause); 976N(SyntaxKind.ArrowExpressionClause); 1022N(SyntaxKind.ArrowExpressionClause); 1068N(SyntaxKind.ArrowExpressionClause); 1114N(SyntaxKind.ArrowExpressionClause); 1164N(SyntaxKind.ArrowExpressionClause); 1218N(SyntaxKind.ArrowExpressionClause); 1265N(SyntaxKind.ArrowExpressionClause); 1334N(SyntaxKind.ArrowExpressionClause); 1385N(SyntaxKind.ArrowExpressionClause); 1439N(SyntaxKind.ArrowExpressionClause); 1718N(SyntaxKind.ArrowExpressionClause); 1936N(SyntaxKind.ArrowExpressionClause); 1987N(SyntaxKind.ArrowExpressionClause); 2046N(SyntaxKind.ArrowExpressionClause); 2105N(SyntaxKind.ArrowExpressionClause); 2242N(SyntaxKind.ArrowExpressionClause); 2295N(SyntaxKind.ArrowExpressionClause); 2363N(SyntaxKind.ArrowExpressionClause); 2437N(SyntaxKind.ArrowExpressionClause); 2471N(SyntaxKind.ArrowExpressionClause);
Parsing\LambdaParameterParsingTests.cs (1)
5530N(SyntaxKind.ArrowExpressionClause);
Parsing\LambdaReturnTypeParsingTests.cs (1)
5012N(SyntaxKind.ArrowExpressionClause);
Parsing\LocalFunctionParsingTests.cs (4)
485N(SyntaxKind.ArrowExpressionClause); 1439N(SyntaxKind.ArrowExpressionClause); 1589N(SyntaxKind.ArrowExpressionClause); 3062N(SyntaxKind.ArrowExpressionClause);
Parsing\MemberDeclarationParsingTests.cs (121)
351N(SyntaxKind.ArrowExpressionClause); 403N(SyntaxKind.ArrowExpressionClause); 462N(SyntaxKind.ArrowExpressionClause); 683N(SyntaxKind.ArrowExpressionClause); 2403N(SyntaxKind.ArrowExpressionClause); 2536N(SyntaxKind.ArrowExpressionClause); 2660N(SyntaxKind.ArrowExpressionClause); 2766N(SyntaxKind.ArrowExpressionClause); 2864N(SyntaxKind.ArrowExpressionClause); 2937N(SyntaxKind.ArrowExpressionClause); 3000N(SyntaxKind.ArrowExpressionClause); 3051N(SyntaxKind.ArrowExpressionClause); 3111N(SyntaxKind.ArrowExpressionClause); 3182N(SyntaxKind.ArrowExpressionClause); 3286N(SyntaxKind.ArrowExpressionClause); 3422N(SyntaxKind.ArrowExpressionClause); 3550N(SyntaxKind.ArrowExpressionClause); 3660N(SyntaxKind.ArrowExpressionClause); 3762N(SyntaxKind.ArrowExpressionClause); 3839N(SyntaxKind.ArrowExpressionClause); 3906N(SyntaxKind.ArrowExpressionClause); 3961N(SyntaxKind.ArrowExpressionClause); 4025N(SyntaxKind.ArrowExpressionClause); 4100N(SyntaxKind.ArrowExpressionClause); 4164N(SyntaxKind.ArrowExpressionClause); 4227N(SyntaxKind.ArrowExpressionClause); 4322N(SyntaxKind.ArrowExpressionClause); 4447N(SyntaxKind.ArrowExpressionClause); 4564N(SyntaxKind.ArrowExpressionClause); 4663N(SyntaxKind.ArrowExpressionClause); 4754N(SyntaxKind.ArrowExpressionClause); 4826N(SyntaxKind.ArrowExpressionClause); 4888N(SyntaxKind.ArrowExpressionClause); 4938N(SyntaxKind.ArrowExpressionClause); 4997N(SyntaxKind.ArrowExpressionClause); 5067N(SyntaxKind.ArrowExpressionClause); 5164N(SyntaxKind.ArrowExpressionClause); 5293N(SyntaxKind.ArrowExpressionClause); 5414N(SyntaxKind.ArrowExpressionClause); 5517N(SyntaxKind.ArrowExpressionClause); 5612N(SyntaxKind.ArrowExpressionClause); 5688N(SyntaxKind.ArrowExpressionClause); 5754N(SyntaxKind.ArrowExpressionClause); 5808N(SyntaxKind.ArrowExpressionClause); 5871N(SyntaxKind.ArrowExpressionClause); 5945N(SyntaxKind.ArrowExpressionClause); 6008N(SyntaxKind.ArrowExpressionClause); 6070N(SyntaxKind.ArrowExpressionClause); 6139N(SyntaxKind.ArrowExpressionClause); 6205N(SyntaxKind.ArrowExpressionClause); 6338N(SyntaxKind.ArrowExpressionClause); 6438N(SyntaxKind.ArrowExpressionClause); 6489N(SyntaxKind.ArrowExpressionClause); 6589N(SyntaxKind.ArrowExpressionClause); 6681N(SyntaxKind.ArrowExpressionClause); 6744N(SyntaxKind.ArrowExpressionClause); 6798N(SyntaxKind.ArrowExpressionClause); 6848N(SyntaxKind.ArrowExpressionClause); 6907N(SyntaxKind.ArrowExpressionClause); 6977N(SyntaxKind.ArrowExpressionClause); 7065N(SyntaxKind.ArrowExpressionClause); 7178N(SyntaxKind.ArrowExpressionClause); 7282N(SyntaxKind.ArrowExpressionClause); 7386N(SyntaxKind.ArrowExpressionClause); 7482N(SyntaxKind.ArrowExpressionClause); 7549N(SyntaxKind.ArrowExpressionClause); 7607N(SyntaxKind.ArrowExpressionClause); 7661N(SyntaxKind.ArrowExpressionClause); 7724N(SyntaxKind.ArrowExpressionClause); 7798N(SyntaxKind.ArrowExpressionClause); 7861N(SyntaxKind.ArrowExpressionClause); 7923N(SyntaxKind.ArrowExpressionClause); 7980N(SyntaxKind.ArrowExpressionClause); 8034N(SyntaxKind.ArrowExpressionClause); 8088N(SyntaxKind.ArrowExpressionClause); 8258N(SyntaxKind.ArrowExpressionClause); 8600N(SyntaxKind.ArrowExpressionClause); 8752N(SyntaxKind.ArrowExpressionClause); 8810N(SyntaxKind.ArrowExpressionClause); 8876N(SyntaxKind.ArrowExpressionClause); 8929N(SyntaxKind.ArrowExpressionClause); 8991N(SyntaxKind.ArrowExpressionClause); 9053N(SyntaxKind.ArrowExpressionClause); 9099N(SyntaxKind.ArrowExpressionClause); 9149N(SyntaxKind.ArrowExpressionClause); 9696N(SyntaxKind.ArrowExpressionClause); 9752N(SyntaxKind.ArrowExpressionClause); 9818N(SyntaxKind.ArrowExpressionClause); 9892N(SyntaxKind.ArrowExpressionClause); 9934N(SyntaxKind.ArrowExpressionClause); 9984N(SyntaxKind.ArrowExpressionClause); 10034N(SyntaxKind.ArrowExpressionClause); 10110N(SyntaxKind.ArrowExpressionClause); 10154N(SyntaxKind.ArrowExpressionClause); 10456N(SyntaxKind.ArrowExpressionClause); 10640N(SyntaxKind.ArrowExpressionClause); 10748N(SyntaxKind.ArrowExpressionClause); 10873N(SyntaxKind.ArrowExpressionClause); 11048N(SyntaxKind.ArrowExpressionClause); 11222N(SyntaxKind.ArrowExpressionClause); 11541N(SyntaxKind.ArrowExpressionClause); 11581N(SyntaxKind.ArrowExpressionClause); 11699N(SyntaxKind.ArrowExpressionClause); 11804N(SyntaxKind.ArrowExpressionClause); 11865N(SyntaxKind.ArrowExpressionClause); 11883N(SyntaxKind.ArrowExpressionClause); 12450N(SyntaxKind.ArrowExpressionClause); 12504N(SyntaxKind.ArrowExpressionClause); 12565N(SyntaxKind.ArrowExpressionClause); 12627N(SyntaxKind.ArrowExpressionClause); 13552N(SyntaxKind.ArrowExpressionClause); 13627N(SyntaxKind.ArrowExpressionClause); 13676N(SyntaxKind.ArrowExpressionClause); 13733N(SyntaxKind.ArrowExpressionClause); 13798N(SyntaxKind.ArrowExpressionClause); 13872N(SyntaxKind.ArrowExpressionClause); 18710N(SyntaxKind.ArrowExpressionClause); 18907N(SyntaxKind.ArrowExpressionClause); 20464N(SyntaxKind.ArrowExpressionClause); 20938N(SyntaxKind.ArrowExpressionClause); 20956N(SyntaxKind.ArrowExpressionClause);
Parsing\PartialEventsAndConstructorsParsingTests.cs (8)
874N(SyntaxKind.ArrowExpressionClause); 1221N(SyntaxKind.ArrowExpressionClause); 1286N(SyntaxKind.ArrowExpressionClause); 1376N(SyntaxKind.ArrowExpressionClause); 1420N(SyntaxKind.ArrowExpressionClause); 1442N(SyntaxKind.ArrowExpressionClause); 1490N(SyntaxKind.ArrowExpressionClause); 1512N(SyntaxKind.ArrowExpressionClause);
Parsing\PatternParsingTests.cs (2)
9839N(SyntaxKind.ArrowExpressionClause); 11478N(SyntaxKind.ArrowExpressionClause);
Parsing\StatementParsingTests.cs (1)
4658N(SyntaxKind.ArrowExpressionClause);
Parsing\SwitchExpressionParsingTests.cs (20)
513N(SyntaxKind.ArrowExpressionClause); 598N(SyntaxKind.ArrowExpressionClause); 687N(SyntaxKind.ArrowExpressionClause); 770N(SyntaxKind.ArrowExpressionClause); 849N(SyntaxKind.ArrowExpressionClause); 937N(SyntaxKind.ArrowExpressionClause); 1032N(SyntaxKind.ArrowExpressionClause); 1114N(SyntaxKind.ArrowExpressionClause); 1193N(SyntaxKind.ArrowExpressionClause); 1287N(SyntaxKind.ArrowExpressionClause); 1394N(SyntaxKind.ArrowExpressionClause); 1489N(SyntaxKind.ArrowExpressionClause); 1568N(SyntaxKind.ArrowExpressionClause); 1651N(SyntaxKind.ArrowExpressionClause); 1728N(SyntaxKind.ArrowExpressionClause); 1802N(SyntaxKind.ArrowExpressionClause); 1878N(SyntaxKind.ArrowExpressionClause); 1954N(SyntaxKind.ArrowExpressionClause); 2034N(SyntaxKind.ArrowExpressionClause); 2120N(SyntaxKind.ArrowExpressionClause);
Parsing\TypeArgumentListParsingTests.cs (2)
919N(SyntaxKind.ArrowExpressionClause); 979N(SyntaxKind.ArrowExpressionClause);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
569case SyntaxKind.ArrowExpressionClause:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
101if (nodeParent.IsKind(SyntaxKind.ArrowExpressionClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
101SyntaxKind.ArrowExpressionClause or 171case SyntaxKind.ArrowExpressionClause:
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
37case SyntaxKind.ArrowExpressionClause: 88case SyntaxKind.ArrowExpressionClause:
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
569case SyntaxKind.ArrowExpressionClause:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
101if (nodeParent.IsKind(SyntaxKind.ArrowExpressionClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
101SyntaxKind.ArrowExpressionClause or 171case SyntaxKind.ArrowExpressionClause: