159 references to OutKeyword
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
167previous.IsKind(SyntaxKind.OutKeyword) ||
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Expressions.cs (2)
1837((ArgumentSyntax)parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword); 3094if (argumentSyntax.RefKindKeyword.IsKind(SyntaxKind.OutKeyword))
CSharpExtensions.cs (1)
251case SyntaxKind.OutKeyword: return VarianceKind.Out;
Parser\DocumentationCommentParser.cs (2)
1233case SyntaxKind.OutKeyword: 1254case SyntaxKind.OutKeyword:
Parser\LanguageParser.cs (12)
1470Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 4722case SyntaxKind.OutKeyword: 4738if (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 4755while (this.CurrentToken.Kind is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)) 5805if (this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 5832this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 6355var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 10119if (this.CurrentToken.Kind is not (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword)) 10859return SyntaxFacts.IsPrefixUnaryExpression(kind) && kind is not SyntaxKind.RefKeyword and not SyntaxKind.OutKeyword; 11994case SyntaxKind.OutKeyword: 12037expression = refKindKeyword?.Kind == SyntaxKind.OutKeyword 13395case SyntaxKind.OutKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
1125AddKeyword(SyntaxKind.OutKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
772AddKeyword(SyntaxKind.OutKeyword);
Symbols\RefKindExtensions.cs (1)
27case SyntaxKind.OutKeyword:
Symbols\Source\ParameterHelpers.cs (7)
459addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 487addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 499case SyntaxKind.OutKeyword: 510addERR_ParamsCantBeWithModifier(diagnostics, modifier, SyntaxKind.OutKeyword); 549addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 576addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 934case SyntaxKind.OutKeyword:
Syntax\SyntaxExtensions.cs (1)
387&& ((ArgumentSyntax)p.Parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword;
Syntax\SyntaxKindFacts.cs (3)
967return SyntaxKind.OutKeyword; 1615case SyntaxKind.OutKeyword: 1812return kind == SyntaxKind.OutKeyword || kind == SyntaxKind.InKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
86if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
150argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
603siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
62public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.OutKeyword => RefKind.Out, 81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
198=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
99case SyntaxKind.OutKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1107if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1287if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 1817if (token.IsKind(SyntaxKind.OutKeyword) && 2445if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2875if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
1227if (((ArgumentSyntax)reference.Parent).RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
152return token is (kind: SyntaxKind.CommaToken or SyntaxKind.RefKeyword or SyntaxKind.OutKeyword);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
145if (argument is { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) })
Completion\KeywordRecommenders\OutKeywordRecommender.cs (1)
13: base(SyntaxKind.OutKeyword)
Completion\KeywordRecommenders\ScopedKeywordRecommender.cs (1)
41case SyntaxKind.OutKeyword:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
259SyntaxKind.OutKeyword : SyntaxKind.None;
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
86if (argumentNode.RefOrOutKeyword.Kind() != SyntaxKind.OutKeyword)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
150argumentIndex == arguments.Count - 1 && arguments[argumentIndex] is { RefKindKeyword.RawKind: (int)SyntaxKind.OutKeyword, Expression: DeclarationExpressionSyntax { Designation: SingleVariableDesignationSyntax singleVariable } }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
603siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (74)
LexicalAndXml\CrefLexerTests.cs (4)
45AssertTokens("out", Token(SyntaxKind.OutKeyword)); 54AssertTokens("out", Token(SyntaxKind.OutKeyword, "out", "out")); 63AssertTokens("out", Token(SyntaxKind.OutKeyword, "out", "out")); 390Token(SyntaxKind.OutKeyword),
Parsing\CrefParsingTests.cs (4)
1317N(SyntaxKind.OutKeyword); 1444N(SyntaxKind.OutKeyword); 1577N(SyntaxKind.OutKeyword); 1898N(SyntaxKind.OutKeyword);
Parsing\DeclarationExpressionTests.cs (6)
36N(SyntaxKind.OutKeyword); 989N(SyntaxKind.OutKeyword); 1036N(SyntaxKind.OutKeyword); 1083N(SyntaxKind.OutKeyword); 1139N(SyntaxKind.OutKeyword); 1201N(SyntaxKind.OutKeyword);
Parsing\DeclarationParsingTests.cs (4)
1672Assert.Equal(SyntaxKind.OutKeyword, gn.Parameters[0].VarianceKeyword.Kind()); 2312Assert.Equal(SyntaxKind.OutKeyword, ds.ParameterList.Parameters[0].Modifiers[0].Kind()); 3154TestClassMethodWithParameterModifier(SyntaxKind.OutKeyword); 6587N(SyntaxKind.OutKeyword);
Parsing\DeclarationScopeParsingTests.cs (34)
118N(SyntaxKind.OutKeyword); 213N(SyntaxKind.OutKeyword); 861N(SyntaxKind.OutKeyword); 979N(SyntaxKind.OutKeyword); 5921N(SyntaxKind.OutKeyword); 5973N(SyntaxKind.OutKeyword); 6042N(SyntaxKind.OutKeyword); 6111N(SyntaxKind.OutKeyword); 6175N(SyntaxKind.OutKeyword); 6250N(SyntaxKind.OutKeyword); 6337N(SyntaxKind.OutKeyword); 6405N(SyntaxKind.OutKeyword); 6471N(SyntaxKind.OutKeyword); 6532N(SyntaxKind.OutKeyword); 6602N(SyntaxKind.OutKeyword); 6664N(SyntaxKind.OutKeyword); 6743N(SyntaxKind.OutKeyword); 6816N(SyntaxKind.OutKeyword); 6872N(SyntaxKind.OutKeyword); 6932N(SyntaxKind.OutKeyword); 6993N(SyntaxKind.OutKeyword); 7053N(SyntaxKind.OutKeyword); 7109N(SyntaxKind.OutKeyword); 7165N(SyntaxKind.OutKeyword); 7225N(SyntaxKind.OutKeyword); 7286N(SyntaxKind.OutKeyword); 7338N(SyntaxKind.OutKeyword); 7404N(SyntaxKind.OutKeyword); 7476N(SyntaxKind.OutKeyword); 7556N(SyntaxKind.OutKeyword); 7769N(SyntaxKind.OutKeyword); 7960N(SyntaxKind.OutKeyword); 8016N(SyntaxKind.OutKeyword); 11074N(SyntaxKind.OutKeyword);
Parsing\DeconstructionTests.cs (2)
2583N(SyntaxKind.OutKeyword); 2646N(SyntaxKind.OutKeyword);
Parsing\ExpressionParsingTests.cs (4)
1011Assert.Equal(SyntaxKind.OutKeyword, cs.ArgumentList.Arguments[0].RefOrOutKeyword.Kind()); 1107Assert.Equal(SyntaxKind.OutKeyword, ea.ArgumentList.Arguments[0].RefOrOutKeyword.Kind()); 4053N(SyntaxKind.OutKeyword); 4537N(SyntaxKind.OutKeyword);
Parsing\FieldKeywordParsingTests.cs (1)
1289N(SyntaxKind.OutKeyword);
Parsing\FunctionPointerTests.cs (1)
834N(SyntaxKind.OutKeyword);
Parsing\LambdaAttributeParsingTests.cs (1)
739N(SyntaxKind.OutKeyword);
Parsing\LambdaParameterParsingTests.cs (1)
3586N(SyntaxKind.OutKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (5)
3607N(SyntaxKind.OutKeyword); 3736N(SyntaxKind.OutKeyword); 3898N(SyntaxKind.OutKeyword); 4137N(SyntaxKind.OutKeyword); 4237N(SyntaxKind.OutKeyword);
Parsing\RecordParsing.cs (1)
1828N(SyntaxKind.OutKeyword);
Parsing\ScriptParsingTests.cs (6)
3677N(SyntaxKind.OutKeyword); 3826N(SyntaxKind.OutKeyword); 4220N(SyntaxKind.OutKeyword); 6569N(SyntaxKind.OutKeyword); 6707N(SyntaxKind.OutKeyword); 6782N(SyntaxKind.OutKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
62public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
28SyntaxKind.OutKeyword => RefKind.Out, 81if (argument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
198=> expression?.Parent is ArgumentSyntax { RefOrOutKeyword: SyntaxToken(SyntaxKind.OutKeyword) } argument &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
99case SyntaxKind.OutKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1107if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1287if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 1817if (token.IsKind(SyntaxKind.OutKeyword) && 2445if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2875if (token.Parent.Parent is ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.OutKeyword })
Microsoft.Interop.ComInterfaceGenerator (1)
ComClassGenerator.cs (1)
196.AddModifiers(Token(SyntaxKind.OutKeyword)))
Microsoft.Interop.JavaScript.JSImportGenerator (8)
Marshaling\FuncJSGenerator.cs (3)
76List<ArgumentSyntax> arguments = [source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))]; 138.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))) 144Argument(IdentifierName("__delegate_arg"+(i+1))).WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)),
Marshaling\PrimitiveJSGenerator.cs (1)
64return argument.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword));
Marshaling\TaskJSGenerator.cs (4)
87.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))))); 102source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)), 110.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))) 116Argument(IdentifierName("__task_result")).WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)),
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportFixer.cs (3)
337.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))), 370.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))), 385.WithRefKindKeyword(SyntaxFactory.Token(SyntaxKind.OutKeyword))),
Microsoft.Interop.SourceGeneration (6)
Marshalling\MarshallerHelpers.cs (3)
271.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))); 434tokens = tokens.Add(Token(SyntaxKind.OutKeyword)); 460RefKind.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);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
1876else if (modifiers.Any(SyntaxKind.OutKeyword))
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
124else if (parameter.Modifiers.Any(SyntaxKind.OutKeyword))
CodeModel\ParameterFlagsExtensions.cs (1)
25case SyntaxKind.OutKeyword: