36 references to Compilation
Microsoft.CodeAnalysis.CSharp (36)
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
312
BinaryOperatorSignature signature = this.
Compilation
.builtInOperators.GetSignature(easyOut);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (22)
312
operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Delegate, delegateType, delegateType,
Compilation
.GetSpecialType(SpecialType.System_Boolean)));
478
var nullable =
Compilation
.GetSpecialType(SpecialType.System_Nullable_T);
528
var boolean =
Compilation
.GetSpecialType(SpecialType.System_Boolean);
552
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType));
553
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType));
554
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType));
555
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType));
556
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType));
557
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.UIntAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType, pointerType));
558
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.LongAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType, pointerType));
559
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.ULongAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType, pointerType));
562
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType));
563
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType));
564
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType));
565
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType));
566
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerSubtraction, pointerType, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64)));
583
var voidPointerType = new PointerTypeSymbol(TypeWithAnnotations.Create(
Compilation
.GetSpecialType(SpecialType.System_Void)));
584
operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Pointer, voidPointerType, voidPointerType,
Compilation
.GetSpecialType(SpecialType.System_Boolean)));
723
this.
Compilation
.builtInOperators.GetSimpleBuiltInOperators(kind, operators, skipNativeIntegerOperators: !left.Type.IsNativeIntegerOrNullableThereof() && !right.Type.IsNativeIntegerOrNullableThereof());
738
this.
Compilation
.builtInOperators.GetUtf8ConcatenationBuiltInOperator(left.Type, operators);
762
var @object =
Compilation
.GetSpecialType(SpecialType.System_Object);
763
operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Object, @object, @object,
Compilation
.GetSpecialType(SpecialType.System_Boolean)));
Binder\Semantics\Operators\UnaryOperatorEasyOut.cs (1)
112
UnaryOperatorSignature signature = this.
Compilation
.builtInOperators.GetSignature(easyOut);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
20
return
Compilation
.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
255
this.
Compilation
.builtInOperators.GetSimpleBuiltInOperators(kind, operators, skipNativeIntegerOperators: !operand.Type.IsNativeIntegerOrNullableThereof());
Binder\Semantics\OverloadResolution\OverloadResolution.cs (10)
293
if (
Compilation
.LanguageVersion.AllowImprovedOverloadCandidates())
586
new ConstraintsHelper.CheckConstraintsArgs(this.
Compilation
, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template),
1786
type1Normalized = type1.NormalizeTaskTypes(
Compilation
);
1787
type2Normalized = type2.NormalizeTaskTypes(
Compilation
);
1912
type1Normalized = type1.NormalizeTaskTypes(
Compilation
);
1913
type2Normalized = type2.NormalizeTaskTypes(
Compilation
);
2557
if (y.OriginalDefinition.IsGenericTaskType(
Compilation
))
2781
bool type1IsGenericTask = type1.OriginalDefinition.IsGenericTaskType(
Compilation
);
2782
bool type2IsGenericTask = type2.OriginalDefinition.IsGenericTaskType(
Compilation
);
3509
if (!parameterTypes[i].Type.CheckAllConstraints(
Compilation
, Conversions))