34 references to RefOrOutKeyword
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (3)
1837((ArgumentSyntax)parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword); 3051RefKind origRefKind = argumentSyntax.RefOrOutKeyword.Kind().GetRefKind(); 3081if (argumentSyntax.RefOrOutKeyword.Kind() != SyntaxKind.None)
Syntax\SyntaxExtensions.cs (1)
387&& ((ArgumentSyntax)p.Parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword;
Syntax\SyntaxNodeExtensions.cs (1)
60if (argument.NameColon == null && argument.RefOrOutKeyword == default)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
82if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
611siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword && 87if (argument.RefOrOutKeyword.Kind() == SyntaxKind.RefKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
198=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument && 214ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.RefKeyword })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
615argument.RefOrOutKeyword.Kind() == SyntaxKind.None &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2875if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\OutVarTests.cs (2)
1227if (((ArgumentSyntax)reference.Parent).RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword) 1336if (((ArgumentSyntax)reference.Parent).RefOrOutKeyword.Kind() != SyntaxKind.None)
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
109if (argument.RefOrOutKeyword.Kind() != SyntaxKind.None)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
145if (argument is { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) })
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
82if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
611siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\ExpressionParsingTests.cs (8)
985Assert.NotEqual(default, cs.ArgumentList.Arguments[0].RefOrOutKeyword); 986Assert.Equal(SyntaxKind.RefKeyword, cs.ArgumentList.Arguments[0].RefOrOutKeyword.Kind()); 1010Assert.NotEqual(default, cs.ArgumentList.Arguments[0].RefOrOutKeyword); 1011Assert.Equal(SyntaxKind.OutKeyword, cs.ArgumentList.Arguments[0].RefOrOutKeyword.Kind()); 1081Assert.NotEqual(default, ea.ArgumentList.Arguments[0].RefOrOutKeyword); 1082Assert.Equal(SyntaxKind.RefKeyword, ea.ArgumentList.Arguments[0].RefOrOutKeyword.Kind()); 1106Assert.NotEqual(default, ea.ArgumentList.Arguments[0].RefOrOutKeyword); 1107Assert.Equal(SyntaxKind.OutKeyword, ea.ArgumentList.Arguments[0].RefOrOutKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\CSharpSimplificationService.Expander.cs (1)
275node.RefOrOutKeyword.Kind() == SyntaxKind.None)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword && 87if (argument.RefOrOutKeyword.Kind() == SyntaxKind.RefKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
198=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument && 214ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.RefKeyword })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
615argument.RefOrOutKeyword.Kind() == SyntaxKind.None &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2875if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })