53 references to AdditionOperatorName
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
75WellKnownMemberNames.AdditionOperatorName or WellKnownMemberNames.CheckedAdditionOperatorName or WellKnownMemberNames.UnaryPlusOperatorName => PredefinedOperator.Addition,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
85CodeGenerationOperatorKind.Addition => WellKnownMemberNames.AdditionOperatorName,
Microsoft.CodeAnalysis.CSharp (6)
Binder\Semantics\Operators\OperatorFacts.cs (3)
66(isChecked ? WellKnownMemberNames.CheckedAdditionOperatorName : WellKnownMemberNames.AdditionOperatorName); // This can occur in the presence of syntax errors. 73case SyntaxKind.PlusToken: return isChecked ? WellKnownMemberNames.CheckedAdditionOperatorName : WellKnownMemberNames.AdditionOperatorName; 192case BinaryOperatorKind.Addition: return isChecked ? WellKnownMemberNames.CheckedAdditionOperatorName : WellKnownMemberNames.AdditionOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1209case WellKnownMemberNames.AdditionOperatorName:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2483CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.CheckedAdditionOperatorName, WellKnownMemberNames.AdditionOperatorName, symmetricCheck: false);
Syntax\SyntaxKindFacts.cs (1)
1024case WellKnownMemberNames.AdditionOperatorName:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
50(WellKnownMemberNames.AdditionOperatorName, OperatorPosition.Infix),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Compilation\CompilationAPITests.cs (10)
2724[InlineData(WellKnownMemberNames.AdditionOperatorName, "int.operator +(int, int)")] 2772compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, fakeIntType, fakeIntType, fakeIntType)); 2780var op = compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType); 2819WellKnownMemberNames.AdditionOperatorName, null, intType, intType)); 2821WellKnownMemberNames.AdditionOperatorName, intType, null, intType)); 2823WellKnownMemberNames.AdditionOperatorName, intType, intType, null)); 2847var addBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType); 2882var addBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType); 2914var addBuiltIn = compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType); 2984compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType));
Compilation\GetSemanticInfoTests.cs (7)
2590CheckOperatorSemanticInfo(text, WellKnownMemberNames.AdditionOperatorName); 2782CheckOperatorSemanticInfo(text, WellKnownMemberNames.AdditionOperatorName); 3094var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3126var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3168var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3200var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3243var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName).Cast<IMethodSymbol>();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
4496var @operator = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.AdditionOperatorName); 4508var lookupSymbols = model.LookupSymbols(operatorDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.AdditionOperatorName);
DocumentationComments\CrefTests.cs (1)
5719Assert.Equal(WellKnownMemberNames.AdditionOperatorName, symbol.Name);
Symbols\TypeTests.cs (1)
1642mem = topType.GetMembers(WellKnownMemberNames.AdditionOperatorName).Single();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
319OperatorKind.Addition => WellKnownMemberNames.AdditionOperatorName,
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
76case WellKnownMemberNames.AdditionOperatorName:
Microsoft.CodeAnalysis.Features (1)
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
295MetadataName: WellKnownMemberNames.AdditionOperatorName or WellKnownMemberNames.ConcatenateOperatorName,
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\DocumentationCommentCrefBinder.vb (1)
928CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.AdditionOperatorName, opInfo, useSiteInfo)
Compilation\VisualBasicCompilation.vb (1)
2956nameToCheck = WellKnownMemberNames.AdditionOperatorName
Semantics\Operators.vb (3)
95operators.Add(WellKnownMemberNames.AdditionOperatorName, New OperatorInfo(BinaryOperatorKind.Add)) 221Return If(isChecked, WellKnownMemberNames.CheckedAdditionOperatorName, WellKnownMemberNames.AdditionOperatorName) 3029WellKnownMemberNames.AdditionOperatorName, New OperatorInfo(opKind),
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
386nameToCheck = WellKnownMemberNames.AdditionOperatorName
Symbols\Source\SourceMethodSymbol.vb (1)
937Return WellKnownMemberNames.AdditionOperatorName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\CompilationAPITests.vb (9)
1734<InlineData(WellKnownMemberNames.AdditionOperatorName, "Public Shared Operator +(left As Integer, right As Integer) As Integer")> 1802Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, fakeIntType, fakeIntType, fakeIntType)) 1809Dim op = compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType) 1840Assert.Throws(Of ArgumentNullException)("returnType", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, Nothing, intType, intType)) 1841Assert.Throws(Of ArgumentNullException)("leftType", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, Nothing, intType)) 1842Assert.Throws(Of ArgumentNullException)("rightType", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType, Nothing)) 1864Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType)) 1867Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, nullableIntType, intType)) 1870Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, nullableIntType))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
765Return WellKnownMemberNames.AdditionOperatorName
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
1093Dim additionOperatorSymbol = DirectCast(compilation.GetTypeByMetadataName("C").GetMembers(WellKnownMemberNames.AdditionOperatorName).Single(), IMethodSymbol)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
75WellKnownMemberNames.AdditionOperatorName or WellKnownMemberNames.CheckedAdditionOperatorName or WellKnownMemberNames.UnaryPlusOperatorName => PredefinedOperator.Addition,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
85CodeGenerationOperatorKind.Addition => WellKnownMemberNames.AdditionOperatorName,