27 references to SubtractionOperatorName
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)
110CodeGenerationOperatorKind.Subtraction => WellKnownMemberNames.SubtractionOperatorName,
Microsoft.CodeAnalysis.CSharp (5)
Binder\Semantics\Operators\OperatorFacts.cs (2)
74case SyntaxKind.MinusToken: return isChecked ? WellKnownMemberNames.CheckedSubtractionOperatorName : WellKnownMemberNames.SubtractionOperatorName; 207case BinaryOperatorKind.Subtraction: return isChecked ? WellKnownMemberNames.CheckedSubtractionOperatorName : WellKnownMemberNames.SubtractionOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1228case WellKnownMemberNames.SubtractionOperatorName:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2486CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.CheckedSubtractionOperatorName, WellKnownMemberNames.SubtractionOperatorName, symmetricCheck: false);
Syntax\SyntaxKindFacts.cs (1)
1074case WellKnownMemberNames.SubtractionOperatorName:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
51(WellKnownMemberNames.SubtractionOperatorName, OperatorPosition.Infix),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ArglistTests.cs (1)
1076var m2 = type.GetMember<MethodSymbol>(WellKnownMemberNames.SubtractionOperatorName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\CompilationAPITests.cs (4)
2736[InlineData(WellKnownMemberNames.SubtractionOperatorName, "int.operator -(int, int)")] 2849var subtractBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.SubtractionOperatorName, intType, intType, intType); 2884var subtractBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.SubtractionOperatorName, intType, intType, intType); 2916var subtractBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.SubtractionOperatorName, intType, intType, intType);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
340OperatorKind.Subtraction => WellKnownMemberNames.SubtractionOperatorName,
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
77case WellKnownMemberNames.SubtractionOperatorName:
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\DocumentationCommentCrefBinder.vb (1)
937CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.SubtractionOperatorName, opInfo, useSiteInfo)
Compilation\VisualBasicCompilation.vb (1)
2962nameToCheck = WellKnownMemberNames.SubtractionOperatorName
Semantics\Operators.vb (3)
97operators.Add(WellKnownMemberNames.SubtractionOperatorName, New OperatorInfo(BinaryOperatorKind.Subtract)) 239Return If(isChecked, WellKnownMemberNames.CheckedSubtractionOperatorName, WellKnownMemberNames.SubtractionOperatorName) 3034WellKnownMemberNames.SubtractionOperatorName, New OperatorInfo(opKind),
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
392nameToCheck = WellKnownMemberNames.SubtractionOperatorName
Symbols\Source\SourceMethodSymbol.vb (1)
944Return WellKnownMemberNames.SubtractionOperatorName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
1735<InlineData(WellKnownMemberNames.SubtractionOperatorName, "Public Shared Operator -(left As Integer, right As Integer) As Integer")> 1927Dim subtractBuiltIn = Compilation.CreateBuiltinOperator(WellKnownMemberNames.SubtractionOperatorName, intType, intType, intType)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
799Return WellKnownMemberNames.SubtractionOperatorName
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)
110CodeGenerationOperatorKind.Subtraction => WellKnownMemberNames.SubtractionOperatorName,