30 references to CreateBuiltinOperator
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (13)
2940var op = compilation.CreateBuiltinOperator(name, intType, intType);
2952var op = compilation.CreateBuiltinOperator(name, boolType, boolType);
2962Assert.Throws<ArgumentException>(null, () => compilation.CreateBuiltinOperator(
2971var op = compilation.CreateBuiltinOperator(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType);
2985compilation.CreateBuiltinOperator(WellKnownMemberNames.AdditionOperatorName, intType, intType));
2989compilation.CreateBuiltinOperator(WellKnownMemberNames.CheckedUnaryNegationOperatorName, nullableIntType, intType));
2993compilation.CreateBuiltinOperator(WellKnownMemberNames.CheckedUnaryNegationOperatorName, intType, nullableIntType));
2997compilation.CreateBuiltinOperator(WellKnownMemberNames.ImplicitConversionName, intType, intType));
3001compilation.CreateBuiltinOperator(WellKnownMemberNames.ExplicitConversionName, intType, intType));
3005compilation.CreateBuiltinOperator(WellKnownMemberNames.TrueOperatorName, intType, intType));
3009compilation.CreateBuiltinOperator(WellKnownMemberNames.FalseOperatorName, intType, intType));
3017Assert.Throws<ArgumentNullException>("returnType", () => compilation.CreateBuiltinOperator(
3019Assert.Throws<ArgumentNullException>("operandType", () => compilation.CreateBuiltinOperator(
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (13)
Compilation\CompilationAPITests.vb (12)
1852Dim op = compilation.CreateBuiltinOperator(name, intType, intType)
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))
1873Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.ImplicitConversionName, intType, intType))
1876Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.ExplicitConversionName, intType, intType))
1879Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.FalseOperatorName, intType, intType))
1882Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.TrueOperatorName, intType, intType))
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.Workspaces (1)