88 references to RefExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
819case SyntaxKind.RefExpression: 5749bool isRef = rhsKind is SyntaxKind.RefExpression;
Binder\Binder_Statements.cs (1)
3598Debug.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)
10801case SyntaxKind.RefExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
587case SyntaxKind.RefExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
111public 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 (1)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
39=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (68)
Parsing\DeclarationExpressionTests.cs (5)
311N(SyntaxKind.RefExpression); 320N(SyntaxKind.RefExpression); 359N(SyntaxKind.RefExpression); 377N(SyntaxKind.RefExpression); 386N(SyntaxKind.RefExpression);
Parsing\DeclarationScopeParsingTests.cs (21)
1018N(SyntaxKind.RefExpression); 1179N(SyntaxKind.RefExpression); 3652N(SyntaxKind.RefExpression); 3728N(SyntaxKind.RefExpression); 3882N(SyntaxKind.RefExpression); 3966N(SyntaxKind.RefExpression); 6043N(SyntaxKind.RefExpression); 6251N(SyntaxKind.RefExpression); 6338N(SyntaxKind.RefExpression); 8828N(SyntaxKind.RefExpression); 8940N(SyntaxKind.RefExpression); 9761N(SyntaxKind.RefExpression); 9865N(SyntaxKind.RefExpression); 9939N(SyntaxKind.RefExpression); 10151N(SyntaxKind.RefExpression); 10256N(SyntaxKind.RefExpression); 11049N(SyntaxKind.RefExpression); 12279N(SyntaxKind.RefExpression); 12458N(SyntaxKind.RefExpression); 12525N(SyntaxKind.RefExpression); 13897N(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)
633N(SyntaxKind.RefExpression); 789N(SyntaxKind.RefExpression);
Parsing\LambdaParameterParsingTests.cs (1)
5219N(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)
587case SyntaxKind.RefExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
111public 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))