88 references to RefExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
819
case SyntaxKind.
RefExpression
:
5749
bool isRef = rhsKind is SyntaxKind.
RefExpression
;
Binder\Binder_Statements.cs (1)
3598
Debug.Assert(body.Kind() != SyntaxKind.
RefExpression
);
Compilation\CSharpSemanticModel.cs (1)
101
case SyntaxKind.
RefExpression
:
Compilation\MemberSemanticModel.cs (1)
2300
case SyntaxKind.
RefExpression
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
604
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
RefExpression
)
622
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
RefExpression
)
Parser\LanguageParser.cs (1)
10801
case SyntaxKind.
RefExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
587
case SyntaxKind.
RefExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
111
public 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)
1798
if (parent is (kind: SyntaxKind.RefType or SyntaxKind.
RefExpression
or SyntaxKind.LocalDeclarationStatement))
2451
else if (token.Parent.IsKind(SyntaxKind.
RefExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
30
if (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)
311
N(SyntaxKind.
RefExpression
);
320
N(SyntaxKind.
RefExpression
);
359
N(SyntaxKind.
RefExpression
);
377
N(SyntaxKind.
RefExpression
);
386
N(SyntaxKind.
RefExpression
);
Parsing\DeclarationScopeParsingTests.cs (21)
1018
N(SyntaxKind.
RefExpression
);
1179
N(SyntaxKind.
RefExpression
);
3652
N(SyntaxKind.
RefExpression
);
3728
N(SyntaxKind.
RefExpression
);
3882
N(SyntaxKind.
RefExpression
);
3966
N(SyntaxKind.
RefExpression
);
6043
N(SyntaxKind.
RefExpression
);
6251
N(SyntaxKind.
RefExpression
);
6338
N(SyntaxKind.
RefExpression
);
8828
N(SyntaxKind.
RefExpression
);
8940
N(SyntaxKind.
RefExpression
);
9761
N(SyntaxKind.
RefExpression
);
9865
N(SyntaxKind.
RefExpression
);
9939
N(SyntaxKind.
RefExpression
);
10151
N(SyntaxKind.
RefExpression
);
10256
N(SyntaxKind.
RefExpression
);
11049
N(SyntaxKind.
RefExpression
);
12279
N(SyntaxKind.
RefExpression
);
12458
N(SyntaxKind.
RefExpression
);
12525
N(SyntaxKind.
RefExpression
);
13897
N(SyntaxKind.
RefExpression
);
Parsing\ExpressionParsingTests.cs (11)
2059
Assert.Equal(SyntaxKind.
RefExpression
, lambda.Body.Kind());
2119
Assert.Equal(SyntaxKind.
RefExpression
, lambda.Body.Kind());
6033
N(SyntaxKind.
RefExpression
);
6064
N(SyntaxKind.
RefExpression
);
6094
N(SyntaxKind.
RefExpression
);
6127
N(SyntaxKind.
RefExpression
);
6167
N(SyntaxKind.
RefExpression
);
6201
N(SyntaxKind.
RefExpression
);
6245
N(SyntaxKind.
RefExpression
);
6296
N(SyntaxKind.
RefExpression
);
6369
N(SyntaxKind.
RefExpression
);
Parsing\LambdaAttributeParsingTests.cs (2)
633
N(SyntaxKind.
RefExpression
);
789
N(SyntaxKind.
RefExpression
);
Parsing\LambdaParameterParsingTests.cs (1)
5219
N(SyntaxKind.
RefExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (3)
2490
N(SyntaxKind.
RefExpression
);
2530
N(SyntaxKind.
RefExpression
);
2580
N(SyntaxKind.
RefExpression
);
Parsing\RefFieldParsingTests.cs (16)
197
N(SyntaxKind.
RefExpression
);
260
N(SyntaxKind.
RefExpression
);
322
N(SyntaxKind.
RefExpression
);
381
N(SyntaxKind.
RefExpression
);
442
N(SyntaxKind.
RefExpression
);
718
N(SyntaxKind.
RefExpression
);
762
N(SyntaxKind.
RefExpression
);
809
N(SyntaxKind.
RefExpression
);
860
N(SyntaxKind.
RefExpression
);
910
N(SyntaxKind.
RefExpression
);
950
N(SyntaxKind.
RefExpression
);
996
N(SyntaxKind.
RefExpression
);
1027
N(SyntaxKind.
RefExpression
);
1074
N(SyntaxKind.
RefExpression
);
1113
N(SyntaxKind.
RefExpression
);
1168
N(SyntaxKind.
RefExpression
);
Parsing\StatementParsingTests.cs (9)
816
Assert.Equal(SyntaxKind.
RefExpression
, initializer.Value.Kind());
847
Assert.Equal(SyntaxKind.
RefExpression
, initializer.Value.Kind());
857
Assert.Equal(SyntaxKind.
RefExpression
, initializer.Value.Kind());
1688
N(SyntaxKind.
RefExpression
);
1705
N(SyntaxKind.
RefExpression
);
3162
N(SyntaxKind.
RefExpression
);
3201
N(SyntaxKind.
RefExpression
);
3239
N(SyntaxKind.
RefExpression
);
3317
N(SyntaxKind.
RefExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
587
case SyntaxKind.
RefExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
111
public int? RefExpression => (int)SyntaxKind.
RefExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1798
if (parent is (kind: SyntaxKind.RefType or SyntaxKind.
RefExpression
or SyntaxKind.LocalDeclarationStatement))
2451
else if (token.Parent.IsKind(SyntaxKind.
RefExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
30
if (expression.IsKind(SyntaxKind.
RefExpression
))