89 references to RefExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
819
case SyntaxKind.
RefExpression
:
5784
bool isRef = rhsKind is SyntaxKind.
RefExpression
;
Binder\Binder_Statements.cs (1)
3619
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)
10895
case SyntaxKind.
RefExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
588
case SyntaxKind.
RefExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
115
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 (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1912
case SyntaxKind.
RefExpression
:
2238
case 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)
311
N(SyntaxKind.
RefExpression
);
320
N(SyntaxKind.
RefExpression
);
359
N(SyntaxKind.
RefExpression
);
377
N(SyntaxKind.
RefExpression
);
386
N(SyntaxKind.
RefExpression
);
Parsing\DeclarationScopeParsingTests.cs (20)
1018
N(SyntaxKind.
RefExpression
);
3664
N(SyntaxKind.
RefExpression
);
3740
N(SyntaxKind.
RefExpression
);
3894
N(SyntaxKind.
RefExpression
);
3978
N(SyntaxKind.
RefExpression
);
6055
N(SyntaxKind.
RefExpression
);
6263
N(SyntaxKind.
RefExpression
);
6350
N(SyntaxKind.
RefExpression
);
8840
N(SyntaxKind.
RefExpression
);
8952
N(SyntaxKind.
RefExpression
);
9773
N(SyntaxKind.
RefExpression
);
9877
N(SyntaxKind.
RefExpression
);
9951
N(SyntaxKind.
RefExpression
);
10163
N(SyntaxKind.
RefExpression
);
10268
N(SyntaxKind.
RefExpression
);
11061
N(SyntaxKind.
RefExpression
);
12291
N(SyntaxKind.
RefExpression
);
12470
N(SyntaxKind.
RefExpression
);
12537
N(SyntaxKind.
RefExpression
);
13909
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)
626
N(SyntaxKind.
RefExpression
);
782
N(SyntaxKind.
RefExpression
);
Parsing\LambdaParameterParsingTests.cs (1)
5214
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)
588
case SyntaxKind.
RefExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
115
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
))