161 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)
1867((ArgumentSyntax)parent).RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword); 3124if (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)
1469Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 4742case SyntaxKind.OutKeyword: 4758if (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 4775while (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 5825if (this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 5852this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 6375var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 10154if (this.CurrentToken.Kind is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword)) 10912return SyntaxFacts.IsPrefixUnaryExpression(kind) && kind is not SyntaxKind.RefKeyword and not SyntaxKind.OutKeyword; 12047case SyntaxKind.OutKeyword: 12090expression = refKindKeyword?.Kind == SyntaxKind.OutKeyword 13395case SyntaxKind.OutKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
1133AddKeyword(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); 581addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.OutKeyword); 942case 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)
81if (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)
611siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
65public 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)
98case 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)
405SyntaxKind.OutKeyword : SyntaxKind.None;
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
81if (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)
611siblingArgument.RefOrOutKeyword.Kind() == SyntaxKind.OutKeyword &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (76)
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); 5933N(SyntaxKind.OutKeyword); 5985N(SyntaxKind.OutKeyword); 6054N(SyntaxKind.OutKeyword); 6123N(SyntaxKind.OutKeyword); 6187N(SyntaxKind.OutKeyword); 6262N(SyntaxKind.OutKeyword); 6349N(SyntaxKind.OutKeyword); 6417N(SyntaxKind.OutKeyword); 6483N(SyntaxKind.OutKeyword); 6544N(SyntaxKind.OutKeyword); 6614N(SyntaxKind.OutKeyword); 6676N(SyntaxKind.OutKeyword); 6755N(SyntaxKind.OutKeyword); 6828N(SyntaxKind.OutKeyword); 6884N(SyntaxKind.OutKeyword); 6944N(SyntaxKind.OutKeyword); 7005N(SyntaxKind.OutKeyword); 7065N(SyntaxKind.OutKeyword); 7121N(SyntaxKind.OutKeyword); 7177N(SyntaxKind.OutKeyword); 7237N(SyntaxKind.OutKeyword); 7298N(SyntaxKind.OutKeyword); 7350N(SyntaxKind.OutKeyword); 7416N(SyntaxKind.OutKeyword); 7488N(SyntaxKind.OutKeyword); 7568N(SyntaxKind.OutKeyword); 7781N(SyntaxKind.OutKeyword); 7972N(SyntaxKind.OutKeyword); 8028N(SyntaxKind.OutKeyword); 11086N(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)
732N(SyntaxKind.OutKeyword);
Parsing\LambdaParameterParsingTests.cs (3)
3581N(SyntaxKind.OutKeyword); 6182N(SyntaxKind.OutKeyword); 6216N(SyntaxKind.OutKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (5)
3607N(SyntaxKind.OutKeyword); 3736N(SyntaxKind.OutKeyword); 3898N(SyntaxKind.OutKeyword); 4124N(SyntaxKind.OutKeyword); 4216N(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)
65public 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)
98case 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)
122else if (parameter.Modifiers.Any(SyntaxKind.OutKeyword))
CodeModel\ParameterFlagsExtensions.cs (1)
25case SyntaxKind.OutKeyword: