42 references to Compilation
Microsoft.CodeAnalysis.CSharp (42)
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
312
BinaryOperatorSignature signature = this.
Compilation
.BuiltInOperators.GetSignature(easyOut);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (23)
312
operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Delegate, delegateType, delegateType,
Compilation
.GetSpecialType(SpecialType.System_Boolean)));
478
var nullableEnum =
Compilation
.GetOrCreateNullableType(enumType);
479
var nullableUnderlying =
Compilation
.GetOrCreateNullableType(underlying);
527
var boolean =
Compilation
.GetSpecialType(SpecialType.System_Boolean);
551
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType));
552
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType));
553
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType));
554
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongAddition, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType));
555
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType));
556
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.UIntAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType, pointerType));
557
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.LongAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType, pointerType));
558
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.ULongAndPointerAddition,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType, pointerType));
561
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int32), pointerType));
562
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt32), pointerType));
563
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64), pointerType));
564
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongSubtraction, pointerType,
Compilation
.GetSpecialType(SpecialType.System_UInt64), pointerType));
565
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerSubtraction, pointerType, pointerType,
Compilation
.GetSpecialType(SpecialType.System_Int64)));
582
var voidPointerType = new PointerTypeSymbol(TypeWithAnnotations.Create(
Compilation
.GetSpecialType(SpecialType.System_Void)));
583
operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Pointer, voidPointerType, voidPointerType,
Compilation
.GetSpecialType(SpecialType.System_Boolean)));
741
this.
Compilation
.BuiltInOperators.GetSimpleBuiltInOperators(kind, operators, skipNativeIntegerOperators: !left.Type.IsNativeIntegerOrNullableThereof() && !right.Type.IsNativeIntegerOrNullableThereof());
756
this.
Compilation
.BuiltInOperators.GetUtf8ConcatenationBuiltInOperator(left.Type, operators);
785
var @object =
Compilation
.GetSpecialType(SpecialType.System_Object);
786
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 (3)
20
return
Compilation
.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
257
this.
Compilation
.BuiltInOperators.GetSimpleBuiltInOperators(kind, operators, skipNativeIntegerOperators: !operand.Type.IsNativeIntegerOrNullableThereof());
308
var nullableEnum =
Compilation
.GetOrCreateNullableType(enumType);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (14)
447
if (
Compilation
.LanguageVersion.AllowImprovedOverloadCandidates())
806
new ConstraintsHelper.CheckConstraintsArgs(this.
Compilation
, this.Conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template),
1838
if (!
Compilation
.IsFeatureEnabled(MessageID.IDS_OverloadResolutionPriority))
2185
type1Normalized = type1.NormalizeTaskTypes(
Compilation
);
2186
type2Normalized = type2.NormalizeTaskTypes(
Compilation
);
2309
type1Normalized = type1.NormalizeTaskTypes(
Compilation
);
2310
type2Normalized = type2.NormalizeTaskTypes(
Compilation
);
2996
if (
Compilation
.LanguageVersion < LanguageVersion.CSharp13)
3167
CollectionExpressionTypeKind kind1 = ConversionsBase.GetCollectionExpressionTypeKind(
Compilation
, t1, out TypeWithAnnotations elementType1);
3168
CollectionExpressionTypeKind kind2 = ConversionsBase.GetCollectionExpressionTypeKind(
Compilation
, t2, out TypeWithAnnotations elementType2);
3248
if (y.OriginalDefinition.IsGenericTaskType(
Compilation
))
3461
bool type1IsGenericTask = type1.OriginalDefinition.IsGenericTaskType(
Compilation
);
3462
bool type2IsGenericTask = type2.OriginalDefinition.IsGenericTaskType(
Compilation
);
4244
if (!parameterTypes[i].Type.CheckAllConstraints(
Compilation
, Conversions))