35 references to UnaryMinusExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (1)
671case SyntaxKind.UnaryMinusExpression:
Binder\Binder_Operators.cs (2)
3017case SyntaxKind.UnaryMinusExpression: return UnaryOperatorKind.UnaryMinus; 3079if (node.Kind() != SyntaxKind.UnaryMinusExpression)
Binder\EarlyWellKnownAttributeBinder.cs (1)
116case SyntaxKind.UnaryMinusExpression:
Parser\LanguageParser.cs (1)
10747case SyntaxKind.UnaryMinusExpression:
Syntax\SyntaxKindFacts.cs (1)
420return SyntaxKind.UnaryMinusExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
485if (expression is LiteralExpressionSyntax && !expression.IsParentKind(SyntaxKind.UnaryMinusExpression)) 598if (!(expression is LiteralExpressionSyntax && expression.IsParentKind(SyntaxKind.UnaryMinusExpression))) 720case SyntaxKind.UnaryMinusExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
504SyntaxKind.UnaryMinusExpression or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (3)
193PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateDoubleLiteralExpression(null, 1.0, false)), 222PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateSingleLiteralExpression(null, 1.0F, false)), 276? PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, literal)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1897case SyntaxKind.UnaryMinusExpression:
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.Semantic.UnitTests (1)
Semantics\SyntaxTreeRootTests.cs (1)
96var node = SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
IncrementalParsing\UnaryExpression.cs (2)
22MakeUnaryChange(SyntaxKind.UnaryPlusExpression, SyntaxKind.UnaryMinusExpression); 113case SyntaxKind.UnaryMinusExpression:
Parsing\CollectionExpressionParsingTests.cs (1)
6019N(SyntaxKind.UnaryMinusExpression);
Parsing\LambdaParameterParsingTests.cs (3)
3452N(SyntaxKind.UnaryMinusExpression); 3533N(SyntaxKind.UnaryMinusExpression); 3686N(SyntaxKind.UnaryMinusExpression);
Parsing\PatternParsingTests.cs (2)
6621N(SyntaxKind.UnaryMinusExpression); 7702N(SyntaxKind.UnaryMinusExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3329=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, (ExpressionSyntax)Parenthesize(expression));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
485if (expression is LiteralExpressionSyntax && !expression.IsParentKind(SyntaxKind.UnaryMinusExpression)) 598if (!(expression is LiteralExpressionSyntax && expression.IsParentKind(SyntaxKind.UnaryMinusExpression))) 720case SyntaxKind.UnaryMinusExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
504SyntaxKind.UnaryMinusExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (3)
193PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateDoubleLiteralExpression(null, 1.0, false)), 222PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateSingleLiteralExpression(null, 1.0F, false)), 276? PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, literal)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1897case SyntaxKind.UnaryMinusExpression:
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\MethodXml\MethodXmlBuilder.cs (2)
169case SyntaxKind.UnaryMinusExpression: 263case SyntaxKind.UnaryMinusExpression: