44 references to UnaryPlusOperatorName
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)
112CodeGenerationOperatorKind.UnaryPlus => WellKnownMemberNames.UnaryPlusOperatorName,
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\Operators\OperatorFacts.cs (4)
98WellKnownMemberNames.UnaryPlusOperatorName; // This can occur in the presence of syntax errors. 105case SyntaxKind.PlusToken: return WellKnownMemberNames.UnaryPlusOperatorName; 147return WellKnownMemberNames.UnaryPlusOperatorName; 173case UnaryOperatorKind.UnaryPlus: return WellKnownMemberNames.UnaryPlusOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1240case WellKnownMemberNames.UnaryPlusOperatorName:
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
368case WellKnownMemberNames.UnaryPlusOperatorName: 421case WellKnownMemberNames.UnaryPlusOperatorName:
Syntax\SyntaxKindFacts.cs (1)
1083case WellKnownMemberNames.UnaryPlusOperatorName: return SyntaxKind.PlusToken;
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
57(WellKnownMemberNames.UnaryPlusOperatorName, OperatorPosition.Prefix),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ArglistTests.cs (1)
1072var m1 = type.GetMember<MethodSymbol>(WellKnownMemberNames.UnaryPlusOperatorName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\CompilationAPITests.cs (6)
2798compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType, intType)); 2926[InlineData(WellKnownMemberNames.UnaryPlusOperatorName, "int.operator +(int)")] 2962WellKnownMemberNames.UnaryPlusOperatorName, fakeIntType, fakeIntType)); 2970var op = compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType); 3017WellKnownMemberNames.UnaryPlusOperatorName, null, intType)); 3019WellKnownMemberNames.UnaryPlusOperatorName, intType, null));
Compilation\GetSemanticInfoTests.cs (3)
2645CheckOperatorSemanticInfo(text, WellKnownMemberNames.UnaryPlusOperatorName); 2928var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("UnaryOperator").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName); 2960var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (1)
632WellKnownMemberNames.UnaryPlusOperatorName,
DocumentationComments\CrefTests.cs (1)
3101var expectedOperator = typeC.GetMember<MethodSymbol>(WellKnownMemberNames.UnaryPlusOperatorName).ISymbol;
Symbols\Source\MethodTests.cs (1)
2066var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName).Single();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
345OperatorKind.UnaryPlus => WellKnownMemberNames.UnaryPlusOperatorName,
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
67case WellKnownMemberNames.UnaryPlusOperatorName:
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\DocumentationCommentCrefBinder.vb (1)
925CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryPlusOperatorName, opInfo, useSiteInfo)
Semantics\Operators.vb (3)
94operators.Add(WellKnownMemberNames.UnaryPlusOperatorName, New OperatorInfo(UnaryOperatorKind.Plus)) 274Return WellKnownMemberNames.UnaryPlusOperatorName 3003WellKnownMemberNames.UnaryPlusOperatorName, New OperatorInfo(UnaryOperatorKind.Minus),
Symbols\Source\SourceMethodSymbol.vb (1)
935Return WellKnownMemberNames.UnaryPlusOperatorName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\CompilationAPITests.vb (9)
1824Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType, intType)) 1827Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, nullableIntType, intType, intType)) 1830Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, nullableIntType, intType)) 1833Assert.Throws(Of ArgumentException)("name", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType, nullableIntType)) 1846<InlineData(WellKnownMemberNames.UnaryPlusOperatorName, "Public Shared Operator +(value As Integer) As Integer")> 1889Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, fakeIntType, fakeIntType)) 1896Dim op = compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType) 1905Assert.Throws(Of ArgumentNullException)("returnType", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, Nothing, intType)) 1906Assert.Throws(Of ArgumentNullException)("operandType", Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, Nothing))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\MethodTests.vb (1)
1698Dim Symbol = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName).Single()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
805Return WellKnownMemberNames.UnaryPlusOperatorName
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)
112CodeGenerationOperatorKind.UnaryPlus => WellKnownMemberNames.UnaryPlusOperatorName,