17 references to CheckedUnaryNegationOperatorName
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
98
WellKnownMemberNames.SubtractionOperatorName or WellKnownMemberNames.CheckedSubtractionOperatorName or WellKnownMemberNames.UnaryNegationOperatorName or WellKnownMemberNames.
CheckedUnaryNegationOperatorName
=> PredefinedOperator.Subtraction,
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\Operators\OperatorFacts.cs (2)
106
case SyntaxKind.MinusToken: return isChecked ? WellKnownMemberNames.
CheckedUnaryNegationOperatorName
: WellKnownMemberNames.UnaryNegationOperatorName;
174
case UnaryOperatorKind.UnaryMinus: return isChecked ? WellKnownMemberNames.
CheckedUnaryNegationOperatorName
: WellKnownMemberNames.UnaryNegationOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1238
case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2482
CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, WellKnownMemberNames.UnaryNegationOperatorName, symmetricCheck: false);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
366
case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
:
419
case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
:
Syntax\SyntaxKindFacts.cs (2)
1079
case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
:
1095
case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
2927
[InlineData(WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, "int.operator checked -(int)")]
2988
compilation.CreateBuiltinOperator(WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, nullableIntType, intType));
2992
compilation.CreateBuiltinOperator(WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, intType, nullableIntType));
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (1)
3035
Dim nameToCheck = If(name = WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, WellKnownMemberNames.UnaryNegationOperatorName, name)
Semantics\Operators.vb (1)
276
Return If(isChecked, WellKnownMemberNames.
CheckedUnaryNegationOperatorName
, WellKnownMemberNames.UnaryNegationOperatorName)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
393
Case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
35
Case WellKnownMemberNames.
CheckedUnaryNegationOperatorName
,
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
98
WellKnownMemberNames.SubtractionOperatorName or WellKnownMemberNames.CheckedSubtractionOperatorName or WellKnownMemberNames.UnaryNegationOperatorName or WellKnownMemberNames.
CheckedUnaryNegationOperatorName
=> PredefinedOperator.Subtraction,