103 references to OutKeyword
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
167previous.IsKind(SyntaxKind.OutKeyword) ||
Microsoft.CodeAnalysis.CSharp (38)
_generated\0\Syntax.xml.Main.Generated.cs (3)
3183case SyntaxKind.OutKeyword: 4990case SyntaxKind.OutKeyword: 6083case SyntaxKind.OutKeyword:
_generated\1\Syntax.xml.Internal.Generated.cs (6)
29743case SyntaxKind.OutKeyword: 32001case SyntaxKind.OutKeyword: 33289case SyntaxKind.OutKeyword: 35170case SyntaxKind.OutKeyword: 37428case SyntaxKind.OutKeyword: 38716case SyntaxKind.OutKeyword:
Binder\Binder_Expressions.cs (2)
1942((ArgumentSyntax)parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword); 3215if (argumentSyntax.RefKindKeyword.IsKind(SyntaxKind.OutKeyword))
CSharpExtensions.cs (1)
251case SyntaxKind.OutKeyword: return VarianceKind.Out;
Parser\DocumentationCommentParser.cs (2)
1299case SyntaxKind.OutKeyword: 1320case SyntaxKind.OutKeyword:
Parser\LanguageParser.cs (9)
1493Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 5042case SyntaxKind.OutKeyword: 6203if (this.CurrentToken.Kind is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 6231this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 6754var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 11397return SyntaxFacts.IsPrefixUnaryExpression(kind) && kind is not SyntaxKind.RefKeyword and not SyntaxKind.OutKeyword; 12610case SyntaxKind.OutKeyword: 12653expression = refKindKeyword?.Kind == SyntaxKind.OutKeyword 13972case SyntaxKind.OutKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
1139AddKeyword(SyntaxKind.OutKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
817AddKeyword(SyntaxKind.OutKeyword);
Symbols\RefKindExtensions.cs (1)
27case SyntaxKind.OutKeyword:
Symbols\Source\ParameterHelpers.cs (8)
625addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 653addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 665case SyntaxKind.OutKeyword: 680addERR_ParamsCantBeWithModifier(diagnostics, modifier, SyntaxKind.OutKeyword); 719addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 751addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 787if (nextModifier.Kind() is not (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ScopedKeyword)) 1146case SyntaxKind.OutKeyword:
Syntax\SyntaxExtensions.cs (1)
387&& ((ArgumentSyntax)p.Parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword;
Syntax\SyntaxKindFacts.cs (3)
997return SyntaxKind.OutKeyword; 1698case SyntaxKind.OutKeyword: 1903return kind == SyntaxKind.OutKeyword || kind == SyntaxKind.InKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
81if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
149argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
580siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.OutKeyword => RefKind.Out, 81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
197=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
101case SyntaxKind.OutKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1115if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1295if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 1825if (token.IsKind(SyntaxKind.OutKeyword) && 2453if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2885if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
151return token is (kind: SyntaxKind.CommaToken or SyntaxKind.RefKeyword or SyntaxKind.OutKeyword);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
213if (argument is { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) })
Completion\KeywordRecommenders\OutKeywordRecommender.cs (1)
10internal sealed class OutKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.OutKeyword)
Completion\KeywordRecommenders\ScopedKeywordRecommender.cs (1)
41case SyntaxKind.OutKeyword:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
404SyntaxKind.OutKeyword : SyntaxKind.None;
src\roslyn\src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
81if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
149argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
580siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
ReassignedVariable\CSharpReassignedVariableService.cs (1)
44if (current is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.OutKeyword => RefKind.Out, 81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
197=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
101case SyntaxKind.OutKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1115if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1295if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 1825if (token.IsKind(SyntaxKind.OutKeyword) && 2453if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2885if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
96CSharpSyntaxKind.OutKeyword,
Microsoft.Interop.ComInterfaceGenerator (1)
Marshallers\IidParameterIndexMarshallerResolver.cs (1)
95Argument(IdentifierName(queriedInterfaceIdentifier)).WithRefKindKeyword(Token(SyntaxKind.OutKeyword))))))),
Microsoft.Interop.JavaScript.JSImportGenerator (10)
Marshaling\BaseJSGenerator.cs (1)
49.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))))
Marshaling\FuncJSGenerator.cs (3)
53List<ArgumentSyntax> arguments = [source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))]; 115.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))) 121Argument(IdentifierName("__delegate_arg"+(i+1))).WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)),
Marshaling\ImplicitArgumentGenerator.cs (1)
26.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))),
Marshaling\PrimitiveJSGenerator.cs (1)
41.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))))));
Marshaling\TaskJSGenerator.cs (4)
58.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))))); 73source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)), 81.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))) 87Argument(IdentifierName("__task_result")).WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)),
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportFixer.cs (3)
349.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))), 382.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))), 397.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))),
Microsoft.Interop.SourceGeneration (7)
MarshalAsParser.cs (1)
304&& parameterSyntax.Modifiers.IndexOf(SyntaxKind.OutKeyword) >= 0;
Marshalling\MarshallerHelpers.cs (3)
244.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))); 407tokens = tokens.Add(Token(SyntaxKind.OutKeyword)); 433RefKind.Out => Token(SyntaxKind.OutKeyword),
Marshalling\StatelessMarshallingStrategy.cs (2)
208.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)) 410.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))
Utils\SyntaxFactoryExtensions.cs (1)
78=> Argument(null, Token(SyntaxKind.OutKeyword), expression);
Roslyn.Diagnostics.CSharp.Analyzers (10)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.OutKeyword => RefKind.Out, 81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
197=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
101case SyntaxKind.OutKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1115if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1295if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 1825if (token.IsKind(SyntaxKind.OutKeyword) && 2453if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2885if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })