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