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