34 references to UnaryMinusExpression
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (1)
639case SyntaxKind.UnaryMinusExpression:
Binder\Binder_Operators.cs (2)
2974case SyntaxKind.UnaryMinusExpression: return UnaryOperatorKind.UnaryMinus; 3036if (node.Kind() != SyntaxKind.UnaryMinusExpression)
Binder\EarlyWellKnownAttributeBinder.cs (1)
116case SyntaxKind.UnaryMinusExpression:
Parser\LanguageParser.cs (1)
10131case SyntaxKind.UnaryMinusExpression:
Syntax\SyntaxKindFacts.cs (1)
392return SyntaxKind.UnaryMinusExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
ExpressionSyntaxExtensions.cs (3)
470if (expression is LiteralExpressionSyntax && !expression.IsParentKind(SyntaxKind.UnaryMinusExpression)) 583if (!(expression is LiteralExpressionSyntax && expression.IsParentKind(SyntaxKind.UnaryMinusExpression))) 738case SyntaxKind.UnaryMinusExpression:
ParenthesizedExpressionSyntaxExtensions.cs (1)
515SyntaxKind.UnaryMinusExpression or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpTypeInferenceService.TypeInferrer.cs (1)
1952case SyntaxKind.UnaryMinusExpression:
ExpressionGenerator.cs (3)
192SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateDoubleLiteralExpression(null, 1.0, false)), 221SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateSingleLiteralExpression(null, 1.0F, false)), 275? SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, literal)
Microsoft.CodeAnalysis.CSharp.Features (1)
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
283if (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 (7)
IncrementalParsing\UnaryExpression.cs (2)
22MakeUnaryChange(SyntaxKind.UnaryPlusExpression, SyntaxKind.UnaryMinusExpression); 113case SyntaxKind.UnaryMinusExpression:
Parsing\LambdaParameterParsingTests.cs (3)
3364N(SyntaxKind.UnaryMinusExpression); 3445N(SyntaxKind.UnaryMinusExpression); 3598N(SyntaxKind.UnaryMinusExpression);
Parsing\PatternParsingTests.cs (2)
6660N(SyntaxKind.UnaryMinusExpression); 7741N(SyntaxKind.UnaryMinusExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3328=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, (ExpressionSyntax)Parenthesize(expression));
CSharpTypeInferenceService.TypeInferrer.cs (1)
1952case SyntaxKind.UnaryMinusExpression:
ExpressionGenerator.cs (3)
192SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateDoubleLiteralExpression(null, 1.0, false)), 221SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, GenerateSingleLiteralExpression(null, 1.0F, false)), 275? SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryMinusExpression, literal)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (3)
470if (expression is LiteralExpressionSyntax && !expression.IsParentKind(SyntaxKind.UnaryMinusExpression)) 583if (!(expression is LiteralExpressionSyntax && expression.IsParentKind(SyntaxKind.UnaryMinusExpression))) 738case SyntaxKind.UnaryMinusExpression:
ParenthesizedExpressionSyntaxExtensions.cs (1)
515SyntaxKind.UnaryMinusExpression or
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\MethodXml\MethodXmlBuilder.cs (2)
169case SyntaxKind.UnaryMinusExpression: 263case SyntaxKind.UnaryMinusExpression: