372 references to UserDefinedOperator
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (22)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (59)
Symbols\CheckedUserDefinedOperatorsTests.cs (25)
53Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
87Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
88Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
120Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
121Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
168Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
169Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
906Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
942Assert.Equal(MethodKind.UserDefinedOperator, opSymbol1.MethodKind);
948Assert.Equal(MethodKind.UserDefinedOperator, opSymbol2.MethodKind);
984Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
985Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
1020Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
1023Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
1026Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[2].MethodKind);
1270Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
1305Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
1306Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
1339Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
1340Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
1374Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
1375Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
2183Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
2229Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind);
2230Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (25)
19318Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind);
19399Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind);
19491Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind);
20279Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20280Assert.Equal(MethodKind.UserDefinedOperator, c1.GetMember<MethodSymbol>(opName).MethodKind);
20301Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind);
20414Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20415Assert.Equal(MethodKind.UserDefinedOperator, c1.GetMember<MethodSymbol>(opName).MethodKind);
20436Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind);
20493Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20573Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20665Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20730Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind);
20826Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
20833Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind);
20940Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
20946Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
21051Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
21057Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
21186Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
21192Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind);
32193Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
32232Assert.Equal(MethodKind.UserDefinedOperator, opSymbol1.MethodKind);
32238Assert.Equal(MethodKind.UserDefinedOperator, opSymbol2.MethodKind);
32441Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (88)
Binding\DocumentationCommentCrefBinder.vb (25)
904CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.TrueOperatorName, opInfo, useSiteInfo)
910CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.FalseOperatorName, opInfo, useSiteInfo)
916CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
925CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryPlusOperatorName, opInfo, useSiteInfo)
928CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.AdditionOperatorName, opInfo, useSiteInfo)
934CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryNegationOperatorName, opInfo, useSiteInfo)
937CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.SubtractionOperatorName, opInfo, useSiteInfo)
943CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.MultiplyOperatorName, opInfo, useSiteInfo)
949CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.DivisionOperatorName, opInfo, useSiteInfo)
955CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.IntegerDivisionOperatorName, opInfo, useSiteInfo)
961CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ModulusOperatorName, opInfo, useSiteInfo)
967CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ExponentOperatorName, opInfo, useSiteInfo)
973CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.EqualityOperatorName, opInfo, useSiteInfo)
979CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.InequalityOperatorName, opInfo, useSiteInfo)
985CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LessThanOperatorName, opInfo, useSiteInfo)
991CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.GreaterThanOperatorName, opInfo, useSiteInfo)
997CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LessThanOrEqualOperatorName, opInfo, useSiteInfo)
1003CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.GreaterThanOrEqualOperatorName, opInfo, useSiteInfo)
1009CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LikeOperatorName, opInfo, useSiteInfo)
1015CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ConcatenateOperatorName, opInfo, useSiteInfo)
1021CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
1030CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
1039CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ExclusiveOrOperatorName, opInfo, useSiteInfo)
1045CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
1054CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
Semantics\Operators.vb (25)
2955CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator,
2969CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator,
2992CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator,
2997CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator,
3002CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator,
3028CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3033CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3038CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3043CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3048CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3053CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3058CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3063CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3068CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3073CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3078CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3083CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3088CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3093CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3098CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3104CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3111CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3116CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3122CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
3128CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
Symbols\Metadata\PE\PEMethodSymbol.vb (13)
449Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
452Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
454Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.OnesComplementOperatorName, False)
478Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
482Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
484Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.BitwiseAndOperatorName, False)
488Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
490Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.BitwiseOrOperatorName, False)
494Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
496Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.LeftShiftOperatorName, False)
500Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False)
502Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.RightShiftOperatorName, False)
523Debug.Assert(potentialMethodKind = MethodKind.Conversion OrElse potentialMethodKind = MethodKind.UserDefinedOperator)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (140)
SymbolsTests\Metadata\PE\LoadingOperators.vb (85)
556New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"),
557New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"),
559New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"),
561New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"),
562New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"),
563New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"),
564New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"),
566New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"),
567New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"),
568New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"),
569New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"),
571New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"),
572New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"),
573New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"),
575New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"),
576New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"),
577New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"),
578New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"),
579New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"),
580New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"),
582New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"),
584New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"),
585New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"),
586New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"),
587New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")}
1152New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"),
1153New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"),
1155New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"),
1157New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"),
1158New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"),
1159New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"),
1160New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"),
1162New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"),
1163New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"),
1164New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"),
1165New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"),
1167New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"),
1168New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"),
1169New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"),
1171New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"),
1172New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"),
1173New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"),
1174New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"),
1175New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"),
1176New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"),
1178New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"),
1180New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"),
1181New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"),
1182New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"),
1183New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")}
1914New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"),
1915New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"),
1917New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"),
1919New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"),
1920New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"),
1921New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"),
1922New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"),
1924New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"),
1925New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"),
1926New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"),
1927New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"),
1929New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"),
1930New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"),
1931New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"),
1933New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"),
1934New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"),
1935New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"),
1936New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"),
1937New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"),
1938New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"),
1940New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"),
1942New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"),
1943New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"),
1944New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"),
1945New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")}
2075New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"),
2076New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"),
2077New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"),
2078New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"),
2079New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1")}
2471Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind)
2549Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind)
2628Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind)
2692Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind)
2782Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Source\OperatorsTests.vb (51)
155New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"),
156New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"),
157New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"),
158New BaseLine(MethodKind.UserDefinedOperator, "op_True"),
159New BaseLine(MethodKind.UserDefinedOperator, "op_False"),
160New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"),
161New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"),
162New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"),
163New BaseLine(MethodKind.UserDefinedOperator, "op_Division"),
164New BaseLine(MethodKind.UserDefinedOperator, "op_IntegerDivision"),
165New BaseLine(MethodKind.UserDefinedOperator, "op_Modulus"),
166New BaseLine(MethodKind.UserDefinedOperator, "op_Exponent"),
167New BaseLine(MethodKind.UserDefinedOperator, "op_Equality"),
168New BaseLine(MethodKind.UserDefinedOperator, "op_Inequality"),
169New BaseLine(MethodKind.UserDefinedOperator, "op_LessThan"),
170New BaseLine(MethodKind.UserDefinedOperator, "op_GreaterThan"),
171New BaseLine(MethodKind.UserDefinedOperator, "op_LessThanOrEqual"),
172New BaseLine(MethodKind.UserDefinedOperator, "op_GreaterThanOrEqual"),
173New BaseLine(MethodKind.UserDefinedOperator, "op_Like"),
174New BaseLine(MethodKind.UserDefinedOperator, "op_Concatenate"),
175New BaseLine(MethodKind.UserDefinedOperator, "op_BitwiseAnd"),
176New BaseLine(MethodKind.UserDefinedOperator, "op_BitwiseOr"),
177New BaseLine(MethodKind.UserDefinedOperator, "op_ExclusiveOr"),
178New BaseLine(MethodKind.UserDefinedOperator, "op_LeftShift"),
179New BaseLine(MethodKind.UserDefinedOperator, "op_RightShift"),
360New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"),
361New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"),
362New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"),
363New BaseLine(MethodKind.UserDefinedOperator, "op_True"),
364New BaseLine(MethodKind.UserDefinedOperator, "op_False"),
365New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"),
366New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"),
367New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"),
368New BaseLine(MethodKind.UserDefinedOperator, "op_Division"),
369New BaseLine(MethodKind.UserDefinedOperator, "op_IntegerDivision"),
370New BaseLine(MethodKind.UserDefinedOperator, "op_Modulus"),
371New BaseLine(MethodKind.UserDefinedOperator, "op_Exponent"),
372New BaseLine(MethodKind.UserDefinedOperator, "op_Equality"),
373New BaseLine(MethodKind.UserDefinedOperator, "op_Inequality"),
377New BaseLine(MethodKind.UserDefinedOperator, "op_LeftShift"),
378New BaseLine(MethodKind.UserDefinedOperator, "op_RightShift"),
379New BaseLine(MethodKind.UserDefinedOperator, "op_ExclusiveOr")
528New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"),
529New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"),
530New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"),
531New BaseLine(MethodKind.UserDefinedOperator, "op_True"),
532New BaseLine(MethodKind.UserDefinedOperator, "op_False"),
533New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"),
534New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"),
535New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"),
536New BaseLine(MethodKind.UserDefinedOperator, "op_Division"),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.VisualStudio.LanguageServices (3)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)