23 references to CreateBuiltinOperator
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\OperatorTests.cs (1)
8397
var synthesizedMethod = compilation.
CreateBuiltinOperator
(
Semantics\UnsafeTests.cs (2)
8875
var synthesizedMethod = compilation.
CreateBuiltinOperator
(
9337
var synthesizedMethod = compilation.
CreateBuiltinOperator
(
Semantics\Utf8StringsLiteralsTests.cs (1)
4088
var synthesizedMethod = comp.
CreateBuiltinOperator
(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
2772
compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, fakeIntType, fakeIntType, fakeIntType));
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
818
semanticModel.Compilation.
CreateBuiltinOperator
(symbol.Name, method.ReturnType, method.Parameters[0].Type, method.Parameters[1].Type);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (17)
Compilation\CompilationAPITests.vb (17)
1747
Dim op = compilation.
CreateBuiltinOperator
(name, intType, intType, intType)
1763
Dim op = compilation.
CreateBuiltinOperator
(name, boolType, intType, intType)
1772
Dim op = compilation.
CreateBuiltinOperator
(WellKnownMemberNames.ConcatenateOperatorName, stringType, stringType, stringType)
1782
Dim op = compilation.
CreateBuiltinOperator
(WellKnownMemberNames.LikeOperatorName, boolType, stringType, stringType)
1793
Dim op = compilation.
CreateBuiltinOperator
(name, doubleType, doubleType, doubleType)
1802
Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, fakeIntType, fakeIntType, fakeIntType))
1809
Dim op = compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, intType, intType, intType)
1821
Assert.Throws(Of ArgumentException)("name", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.IncrementOperatorName, intType, intType, intType))
1824
Assert.Throws(Of ArgumentException)("name", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType, intType))
1827
Assert.Throws(Of ArgumentException)("name", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.UnaryPlusOperatorName, nullableIntType, intType, intType))
1830
Assert.Throws(Of ArgumentException)("name", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.UnaryPlusOperatorName, intType, nullableIntType, intType))
1833
Assert.Throws(Of ArgumentException)("name", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.UnaryPlusOperatorName, intType, intType, nullableIntType))
1840
Assert.Throws(Of ArgumentNullException)("returnType", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, Nothing, intType, intType))
1841
Assert.Throws(Of ArgumentNullException)("leftType", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, intType, Nothing, intType))
1842
Assert.Throws(Of ArgumentNullException)("rightType", Function() compilation.
CreateBuiltinOperator
(WellKnownMemberNames.AdditionOperatorName, intType, intType, Nothing))
1927
Dim subtractBuiltIn = Compilation.
CreateBuiltinOperator
(WellKnownMemberNames.SubtractionOperatorName, intType, intType, intType)
1928
Dim subtractBuiltInChecked = Compilation.
CreateBuiltinOperator
(WellKnownMemberNames.CheckedSubtractionOperatorName, intType, intType, intType)