25 references to UnaryNegationOperatorName
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
98WellKnownMemberNames.SubtractionOperatorName or WellKnownMemberNames.CheckedSubtractionOperatorName or WellKnownMemberNames.UnaryNegationOperatorName or WellKnownMemberNames.CheckedUnaryNegationOperatorName => PredefinedOperator.Subtraction,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
113CodeGenerationOperatorKind.UnaryNegation => WellKnownMemberNames.UnaryNegationOperatorName,
Microsoft.CodeAnalysis.CSharp (7)
Binder\Semantics\Operators\OperatorFacts.cs (2)
106case SyntaxKind.MinusToken: return isChecked ? WellKnownMemberNames.CheckedUnaryNegationOperatorName : WellKnownMemberNames.UnaryNegationOperatorName; 174case UnaryOperatorKind.UnaryMinus: return isChecked ? WellKnownMemberNames.CheckedUnaryNegationOperatorName : WellKnownMemberNames.UnaryNegationOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1239case WellKnownMemberNames.UnaryNegationOperatorName:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2482CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.CheckedUnaryNegationOperatorName, WellKnownMemberNames.UnaryNegationOperatorName, symmetricCheck: false);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
367case WellKnownMemberNames.UnaryNegationOperatorName: 420case WellKnownMemberNames.UnaryNegationOperatorName:
Syntax\SyntaxKindFacts.cs (1)
1080case WellKnownMemberNames.UnaryNegationOperatorName:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
58(WellKnownMemberNames.UnaryNegationOperatorName, OperatorPosition.Prefix),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (1)
2928[InlineData(WellKnownMemberNames.UnaryNegationOperatorName, "int.operator -(int)")]
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (1)
631WellKnownMemberNames.UnaryNegationOperatorName,
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
342OperatorKind.UnaryNegation => WellKnownMemberNames.UnaryNegationOperatorName,
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
69case WellKnownMemberNames.UnaryNegationOperatorName:
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\DocumentationCommentCrefBinder.vb (1)
934CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryNegationOperatorName, opInfo, useSiteInfo)
Compilation\VisualBasicCompilation.vb (1)
3035Dim nameToCheck = If(name = WellKnownMemberNames.CheckedUnaryNegationOperatorName, WellKnownMemberNames.UnaryNegationOperatorName, name)
Semantics\Operators.vb (3)
96operators.Add(WellKnownMemberNames.UnaryNegationOperatorName, New OperatorInfo(UnaryOperatorKind.Minus)) 276Return If(isChecked, WellKnownMemberNames.CheckedUnaryNegationOperatorName, WellKnownMemberNames.UnaryNegationOperatorName) 2998WellKnownMemberNames.UnaryNegationOperatorName, New OperatorInfo(UnaryOperatorKind.Minus),
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
394nameToCheck = WellKnownMemberNames.UnaryNegationOperatorName
Symbols\Source\SourceMethodSymbol.vb (1)
942Return WellKnownMemberNames.UnaryNegationOperatorName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1847<InlineData(WellKnownMemberNames.UnaryNegationOperatorName, "Public Shared Operator -(value As Integer) As Integer")>
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
803Return WellKnownMemberNames.UnaryNegationOperatorName
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
98WellKnownMemberNames.SubtractionOperatorName or WellKnownMemberNames.CheckedSubtractionOperatorName or WellKnownMemberNames.UnaryNegationOperatorName or WellKnownMemberNames.CheckedUnaryNegationOperatorName => PredefinedOperator.Subtraction,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
113CodeGenerationOperatorKind.UnaryNegation => WellKnownMemberNames.UnaryNegationOperatorName,