89 references to RefExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
819case SyntaxKind.RefExpression: 5784bool isRef = rhsKind is SyntaxKind.RefExpression;
Binder\Binder_Statements.cs (1)
3619Debug.Assert(body.Kind() != SyntaxKind.RefExpression);
Compilation\CSharpSemanticModel.cs (1)
101case SyntaxKind.RefExpression:
Compilation\MemberSemanticModel.cs (1)
2300case SyntaxKind.RefExpression:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
604else if (lambdaSyntax.Body.Kind() == SyntaxKind.RefExpression) 622else if (lambdaSyntax.Body.Kind() == SyntaxKind.RefExpression)
Parser\LanguageParser.cs (1)
10895case SyntaxKind.RefExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
588case SyntaxKind.RefExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
115public int? RefExpression => (int)SyntaxKind.RefExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
39=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1798if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 2451else if (token.Parent.IsKind(SyntaxKind.RefExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
30if (expression.IsKind(SyntaxKind.RefExpression))
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1912case SyntaxKind.RefExpression: 2238case SyntaxKind.RefExpression:
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
39=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (67)
Parsing\DeclarationExpressionTests.cs (5)
311N(SyntaxKind.RefExpression); 320N(SyntaxKind.RefExpression); 359N(SyntaxKind.RefExpression); 377N(SyntaxKind.RefExpression); 386N(SyntaxKind.RefExpression);
Parsing\DeclarationScopeParsingTests.cs (20)
1018N(SyntaxKind.RefExpression); 3664N(SyntaxKind.RefExpression); 3740N(SyntaxKind.RefExpression); 3894N(SyntaxKind.RefExpression); 3978N(SyntaxKind.RefExpression); 6055N(SyntaxKind.RefExpression); 6263N(SyntaxKind.RefExpression); 6350N(SyntaxKind.RefExpression); 8840N(SyntaxKind.RefExpression); 8952N(SyntaxKind.RefExpression); 9773N(SyntaxKind.RefExpression); 9877N(SyntaxKind.RefExpression); 9951N(SyntaxKind.RefExpression); 10163N(SyntaxKind.RefExpression); 10268N(SyntaxKind.RefExpression); 11061N(SyntaxKind.RefExpression); 12291N(SyntaxKind.RefExpression); 12470N(SyntaxKind.RefExpression); 12537N(SyntaxKind.RefExpression); 13909N(SyntaxKind.RefExpression);
Parsing\ExpressionParsingTests.cs (11)
2059Assert.Equal(SyntaxKind.RefExpression, lambda.Body.Kind()); 2119Assert.Equal(SyntaxKind.RefExpression, lambda.Body.Kind()); 6033N(SyntaxKind.RefExpression); 6064N(SyntaxKind.RefExpression); 6094N(SyntaxKind.RefExpression); 6127N(SyntaxKind.RefExpression); 6167N(SyntaxKind.RefExpression); 6201N(SyntaxKind.RefExpression); 6245N(SyntaxKind.RefExpression); 6296N(SyntaxKind.RefExpression); 6369N(SyntaxKind.RefExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
626N(SyntaxKind.RefExpression); 782N(SyntaxKind.RefExpression);
Parsing\LambdaParameterParsingTests.cs (1)
5214N(SyntaxKind.RefExpression);
Parsing\LambdaReturnTypeParsingTests.cs (3)
2490N(SyntaxKind.RefExpression); 2530N(SyntaxKind.RefExpression); 2580N(SyntaxKind.RefExpression);
Parsing\RefFieldParsingTests.cs (16)
197N(SyntaxKind.RefExpression); 260N(SyntaxKind.RefExpression); 322N(SyntaxKind.RefExpression); 381N(SyntaxKind.RefExpression); 442N(SyntaxKind.RefExpression); 718N(SyntaxKind.RefExpression); 762N(SyntaxKind.RefExpression); 809N(SyntaxKind.RefExpression); 860N(SyntaxKind.RefExpression); 910N(SyntaxKind.RefExpression); 950N(SyntaxKind.RefExpression); 996N(SyntaxKind.RefExpression); 1027N(SyntaxKind.RefExpression); 1074N(SyntaxKind.RefExpression); 1113N(SyntaxKind.RefExpression); 1168N(SyntaxKind.RefExpression);
Parsing\StatementParsingTests.cs (9)
816Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 847Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 857Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 1688N(SyntaxKind.RefExpression); 1705N(SyntaxKind.RefExpression); 3162N(SyntaxKind.RefExpression); 3201N(SyntaxKind.RefExpression); 3239N(SyntaxKind.RefExpression); 3317N(SyntaxKind.RefExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
588case SyntaxKind.RefExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
115public int? RefExpression => (int)SyntaxKind.RefExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1798if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 2451else if (token.Parent.IsKind(SyntaxKind.RefExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
30if (expression.IsKind(SyntaxKind.RefExpression))