89 references to RefExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
784case SyntaxKind.RefExpression: 4922bool isRef = rhsKind is SyntaxKind.RefExpression;
Binder\Binder_Statements.cs (1)
3500Debug.Assert(body.Kind() != SyntaxKind.RefExpression);
Compilation\CSharpSemanticModel.cs (1)
101case SyntaxKind.RefExpression:
Compilation\MemberSemanticModel.cs (1)
2272case SyntaxKind.RefExpression:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
561else if (lambdaSyntax.Body.Kind() == SyntaxKind.RefExpression) 579else if (lambdaSyntax.Body.Kind() == SyntaxKind.RefExpression)
Parser\LanguageParser.cs (1)
10183case SyntaxKind.RefExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CSharpSyntaxKinds.cs (1)
101public int? RefExpression => (int)SyntaxKind.RefExpression;
ExpressionSyntaxExtensions.cs (1)
572case SyntaxKind.RefExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ExpressionSyntaxExtensions.cs (1)
28if (expression.IsKind(SyntaxKind.RefExpression))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 2455else if (token.Parent.IsKind(SyntaxKind.RefExpression))
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1885case SyntaxKind.RefExpression: 2201case SyntaxKind.RefExpression:
GenerateMember\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
45=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (68)
Parsing\DeclarationExpressionTests.cs (5)
274N(SyntaxKind.RefExpression); 283N(SyntaxKind.RefExpression); 322N(SyntaxKind.RefExpression); 340N(SyntaxKind.RefExpression); 349N(SyntaxKind.RefExpression);
Parsing\DeclarationScopeParsingTests.cs (21)
1037N(SyntaxKind.RefExpression); 1198N(SyntaxKind.RefExpression); 3681N(SyntaxKind.RefExpression); 3786N(SyntaxKind.RefExpression); 3969N(SyntaxKind.RefExpression); 4082N(SyntaxKind.RefExpression); 6323N(SyntaxKind.RefExpression); 6535N(SyntaxKind.RefExpression); 6633N(SyntaxKind.RefExpression); 9141N(SyntaxKind.RefExpression); 9253N(SyntaxKind.RefExpression); 10074N(SyntaxKind.RefExpression); 10185N(SyntaxKind.RefExpression); 10266N(SyntaxKind.RefExpression); 10478N(SyntaxKind.RefExpression); 10590N(SyntaxKind.RefExpression); 11383N(SyntaxKind.RefExpression); 12617N(SyntaxKind.RefExpression); 12807N(SyntaxKind.RefExpression); 12885N(SyntaxKind.RefExpression); 14308N(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); 6101N(SyntaxKind.RefExpression); 6148N(SyntaxKind.RefExpression); 6188N(SyntaxKind.RefExpression); 6222N(SyntaxKind.RefExpression); 6266N(SyntaxKind.RefExpression); 6317N(SyntaxKind.RefExpression); 6390N(SyntaxKind.RefExpression);
Parsing\LambdaAttributeParsingTests.cs (2)
648N(SyntaxKind.RefExpression); 804N(SyntaxKind.RefExpression);
Parsing\LambdaParameterParsingTests.cs (1)
5136N(SyntaxKind.RefExpression);
Parsing\LambdaReturnTypeParsingTests.cs (3)
2417N(SyntaxKind.RefExpression); 2457N(SyntaxKind.RefExpression); 2507N(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); 3159N(SyntaxKind.RefExpression); 3198N(SyntaxKind.RefExpression); 3236N(SyntaxKind.RefExpression); 3314N(SyntaxKind.RefExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CSharpSyntaxKinds.cs (1)
101public int? RefExpression => (int)SyntaxKind.RefExpression;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
572case SyntaxKind.RefExpression:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 2455else if (token.Parent.IsKind(SyntaxKind.RefExpression))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
28if (expression.IsKind(SyntaxKind.RefExpression))