21 references to BitwiseNotExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
673case SyntaxKind.BitwiseNotExpression:
Binder\Binder_Operators.cs (1)
3024case SyntaxKind.BitwiseNotExpression: return UnaryOperatorKind.BitwiseComplement;
Binder\EarlyWellKnownAttributeBinder.cs (1)
118case SyntaxKind.BitwiseNotExpression:
Parser\LanguageParser.cs (1)
10813case SyntaxKind.BitwiseNotExpression:
Syntax\SyntaxKindFacts.cs (1)
422return SyntaxKind.BitwiseNotExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
723case SyntaxKind.BitwiseNotExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
159if (castExpression.WalkUpParentheses().Parent is PrefixUnaryExpressionSyntax(SyntaxKind.BitwiseNotExpression) parent && 787if (parent is not PrefixUnaryExpressionSyntax(SyntaxKind.BitwiseNotExpression)) 792Debug.Assert(rewrittenBitwiseNotExpression.Kind() == SyntaxKind.BitwiseNotExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1917case SyntaxKind.BitwiseNotExpression:
Microsoft.CodeAnalysis.CSharp.Features (1)
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
282if (prefixUnaryExpression.Kind() is SyntaxKind.LogicalNotExpression or SyntaxKind.BitwiseNotExpression or SyntaxKind.UnaryMinusExpression or SyntaxKind.UnaryPlusExpression)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\EnumTests.cs (1)
353var expr = tree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.BitwiseNotExpression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
IncrementalParsing\UnaryExpression.cs (2)
34MakeUnaryChange(SyntaxKind.UnaryPlusExpression, SyntaxKind.BitwiseNotExpression); 115case SyntaxKind.BitwiseNotExpression:
Parsing\PatternParsingTests.cs (1)
6673N(SyntaxKind.BitwiseNotExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3334=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.BitwiseNotExpression, (ExpressionSyntax)Parenthesize(operand));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
723case SyntaxKind.BitwiseNotExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
159if (castExpression.WalkUpParentheses().Parent is PrefixUnaryExpressionSyntax(SyntaxKind.BitwiseNotExpression) parent && 787if (parent is not PrefixUnaryExpressionSyntax(SyntaxKind.BitwiseNotExpression)) 792Debug.Assert(rewrittenBitwiseNotExpression.Kind() == SyntaxKind.BitwiseNotExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1917case SyntaxKind.BitwiseNotExpression: