58 references to AmpersandToken
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Operators\OperatorFacts.cs (1)
79case SyntaxKind.AmpersandToken: return WellKnownMemberNames.BitwiseAndOperatorName;
Parser\LanguageParser.cs (3)
5929case SyntaxKind.AmpersandToken: // e.g. `e is A<B> & e` 12388SyntaxKind.AmpersandToken or 12621case SyntaxKind.AmpersandToken:
Parser\Lexer.cs (2)
597TextWindow.TryAdvance('&') ? SyntaxKind.AmpersandAmpersandToken : SyntaxKind.AmpersandToken; 3701info.Kind = SyntaxKind.AmpersandToken;
Syntax\SyntaxKindFacts.cs (5)
429case SyntaxKind.AmpersandToken: 499case SyntaxKind.AmpersandToken: 631case SyntaxKind.AmpersandToken: 1027case WellKnownMemberNames.BitwiseAndOperatorName: return SyntaxKind.AmpersandToken; 1377case SyntaxKind.AmpersandToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
533if (previousToken.Kind() == SyntaxKind.AmpersandToken &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
377case SyntaxKind.AmpersandToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
47{ SyntaxKind.AmpersandToken, 9 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
995if (operatorToken.Kind() is SyntaxKind.AmpersandToken or 1028case SyntaxKind.AmpersandToken:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
287SyntaxKind.AmpersandToken or
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (35)
LexicalAndXml\CrefLexerTests.cs (8)
175AssertTokens("&amp;", Token(SyntaxKind.AmpersandToken, "&amp;", "&")); 176AssertTokens("&#38;", Token(SyntaxKind.AmpersandToken, "&#38;", "&")); 177AssertTokens("&#038;", Token(SyntaxKind.AmpersandToken, "&#038;", "&")); 178AssertTokens("&#0038;", Token(SyntaxKind.AmpersandToken, "&#0038;", "&")); 179AssertTokens("&#x26;", Token(SyntaxKind.AmpersandToken, "&#x26;", "&")); 180AssertTokens("&#x026;", Token(SyntaxKind.AmpersandToken, "&#x026;", "&")); 181AssertTokens("&#x0026;", Token(SyntaxKind.AmpersandToken, "&#x0026;", "&")); 242AssertTokens("&#38;", Token(SyntaxKind.AmpersandToken, "&#38;", "&")); // Fine
LexicalAndXml\LexicalTests.cs (1)
904TestPunctuation(SyntaxKind.AmpersandToken);
LexicalAndXml\NameAttributeValueLexerTests.cs (8)
182AssertTokens("&amp;", Token(SyntaxKind.AmpersandToken, "&amp;", "&")); 183AssertTokens("&#38;", Token(SyntaxKind.AmpersandToken, "&#38;", "&")); 184AssertTokens("&#038;", Token(SyntaxKind.AmpersandToken, "&#038;", "&")); 185AssertTokens("&#0038;", Token(SyntaxKind.AmpersandToken, "&#0038;", "&")); 186AssertTokens("&#x26;", Token(SyntaxKind.AmpersandToken, "&#x26;", "&")); 187AssertTokens("&#x026;", Token(SyntaxKind.AmpersandToken, "&#x026;", "&")); 188AssertTokens("&#x0026;", Token(SyntaxKind.AmpersandToken, "&#x0026;", "&")); 249AssertTokens("&#38;", Token(SyntaxKind.AmpersandToken, "&#38;", "&")); // Fine
Parsing\AnonymousFunctionParsingTests.cs (4)
1956N(SyntaxKind.AmpersandToken); 2085N(SyntaxKind.AmpersandToken); 2163N(SyntaxKind.AmpersandToken); 2249N(SyntaxKind.AmpersandToken);
Parsing\CollectionExpressionParsingTests.cs (4)
7400N(SyntaxKind.AmpersandToken); 7424N(SyntaxKind.AmpersandToken); 7456N(SyntaxKind.AmpersandToken); 7509N(SyntaxKind.AmpersandToken);
Parsing\DeclarationParsingTests.cs (1)
5335TestClassBinaryOperatorMethod(SyntaxKind.AmpersandToken);
Parsing\ExpressionParsingTests.cs (2)
590TestPrefixUnary(SyntaxKind.AmpersandToken); 656TestBinary(SyntaxKind.AmpersandToken);
Parsing\FunctionPointerTests.cs (1)
2923N(SyntaxKind.AmpersandToken);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
300[InlineData(SyntaxKind.BitwiseAndExpression, SyntaxKind.AmpersandToken)]
Parsing\MemberDeclarationParsingTests.cs (3)
9768[InlineData("&", SyntaxKind.AmpersandToken)] 9834[InlineData("&", SyntaxKind.AmpersandToken)] 10050[InlineData("&", SyntaxKind.AmpersandToken)]
Parsing\PatternParsingTests.cs (2)
725N(SyntaxKind.AmpersandToken); 895N(SyntaxKind.AmpersandToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
401case SyntaxKind.AmpersandToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
533if (previousToken.Kind() == SyntaxKind.AmpersandToken &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
377case SyntaxKind.AmpersandToken:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
47{ SyntaxKind.AmpersandToken, 9 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
995if (operatorToken.Kind() is SyntaxKind.AmpersandToken or 1028case SyntaxKind.AmpersandToken: