1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Compilation\BuiltInOperators.cs (1)
34
_compilation
= compilation;
67 references to _compilation
Microsoft.CodeAnalysis.CSharp (67)
Compilation\BuiltInOperators.cs (67)
264
case UnaryOperatorKind.SByte: opType =
_compilation
.GetSpecialType(SpecialType.System_SByte); break;
265
case UnaryOperatorKind.Byte: opType =
_compilation
.GetSpecialType(SpecialType.System_Byte); break;
266
case UnaryOperatorKind.Short: opType =
_compilation
.GetSpecialType(SpecialType.System_Int16); break;
267
case UnaryOperatorKind.UShort: opType =
_compilation
.GetSpecialType(SpecialType.System_UInt16); break;
268
case UnaryOperatorKind.Int: opType =
_compilation
.GetSpecialType(SpecialType.System_Int32); break;
269
case UnaryOperatorKind.UInt: opType =
_compilation
.GetSpecialType(SpecialType.System_UInt32); break;
270
case UnaryOperatorKind.Long: opType =
_compilation
.GetSpecialType(SpecialType.System_Int64); break;
271
case UnaryOperatorKind.ULong: opType =
_compilation
.GetSpecialType(SpecialType.System_UInt64); break;
272
case UnaryOperatorKind.NInt: opType =
_compilation
.CreateNativeIntegerTypeSymbol(signed: true); break;
273
case UnaryOperatorKind.NUInt: opType =
_compilation
.CreateNativeIntegerTypeSymbol(signed: false); break;
274
case UnaryOperatorKind.Char: opType =
_compilation
.GetSpecialType(SpecialType.System_Char); break;
275
case UnaryOperatorKind.Float: opType =
_compilation
.GetSpecialType(SpecialType.System_Single); break;
276
case UnaryOperatorKind.Double: opType =
_compilation
.GetSpecialType(SpecialType.System_Double); break;
277
case UnaryOperatorKind.Decimal: opType =
_compilation
.GetSpecialType(SpecialType.System_Decimal); break;
278
case UnaryOperatorKind.Bool: opType =
_compilation
.GetSpecialType(SpecialType.System_Boolean); break;
284
opType =
_compilation
.GetOrCreateNullableType(opType);
692
Debug.Assert(
_compilation
.IsReadOnlySpanType(readonlySpanOfByte));
720
TypeSymbol rightType =
_compilation
.GetSpecialType(SpecialType.System_Int32);
723
rightType =
_compilation
.GetOrCreateNullableType(rightType);
733
return new BinaryOperatorSignature(kind, left, left,
_compilation
.GetSpecialType(SpecialType.System_Boolean));
748
case BinaryOperatorKind.Int: return
_compilation
.GetSpecialType(SpecialType.System_Int32);
749
case BinaryOperatorKind.UInt: return
_compilation
.GetSpecialType(SpecialType.System_UInt32);
750
case BinaryOperatorKind.Long: return
_compilation
.GetSpecialType(SpecialType.System_Int64);
751
case BinaryOperatorKind.ULong: return
_compilation
.GetSpecialType(SpecialType.System_UInt64);
752
case BinaryOperatorKind.NInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: true);
753
case BinaryOperatorKind.NUInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: false);
754
case BinaryOperatorKind.Float: return
_compilation
.GetSpecialType(SpecialType.System_Single);
755
case BinaryOperatorKind.Double: return
_compilation
.GetSpecialType(SpecialType.System_Double);
756
case BinaryOperatorKind.Decimal: return
_compilation
.GetSpecialType(SpecialType.System_Decimal);
757
case BinaryOperatorKind.Bool: return
_compilation
.GetSpecialType(SpecialType.System_Boolean);
760
return
_compilation
.GetSpecialType(SpecialType.System_Object);
763
return
_compilation
.GetSpecialType(SpecialType.System_String);
780
case BinaryOperatorKind.Int: return
_compilation
.GetSpecialType(SpecialType.System_Int32);
781
case BinaryOperatorKind.UInt: return
_compilation
.GetSpecialType(SpecialType.System_UInt32);
782
case BinaryOperatorKind.Long: return
_compilation
.GetSpecialType(SpecialType.System_Int64);
783
case BinaryOperatorKind.ULong: return
_compilation
.GetSpecialType(SpecialType.System_UInt64);
784
case BinaryOperatorKind.NInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: true);
785
case BinaryOperatorKind.NUInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: false);
786
case BinaryOperatorKind.Float: return
_compilation
.GetSpecialType(SpecialType.System_Single);
787
case BinaryOperatorKind.Double: return
_compilation
.GetSpecialType(SpecialType.System_Double);
788
case BinaryOperatorKind.Decimal: return
_compilation
.GetSpecialType(SpecialType.System_Decimal);
789
case BinaryOperatorKind.Bool: return
_compilation
.GetSpecialType(SpecialType.System_Boolean);
792
return
_compilation
.GetSpecialType(SpecialType.System_String);
795
return
_compilation
.GetSpecialType(SpecialType.System_Object);
812
case BinaryOperatorKind.Int: return
_compilation
.GetSpecialType(SpecialType.System_Int32);
813
case BinaryOperatorKind.UInt: return
_compilation
.GetSpecialType(SpecialType.System_UInt32);
814
case BinaryOperatorKind.Long: return
_compilation
.GetSpecialType(SpecialType.System_Int64);
815
case BinaryOperatorKind.ULong: return
_compilation
.GetSpecialType(SpecialType.System_UInt64);
816
case BinaryOperatorKind.NInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: true);
817
case BinaryOperatorKind.NUInt: return
_compilation
.CreateNativeIntegerTypeSymbol(signed: false);
818
case BinaryOperatorKind.Float: return
_compilation
.GetSpecialType(SpecialType.System_Single);
819
case BinaryOperatorKind.Double: return
_compilation
.GetSpecialType(SpecialType.System_Double);
820
case BinaryOperatorKind.Decimal: return
_compilation
.GetSpecialType(SpecialType.System_Decimal);
821
case BinaryOperatorKind.Bool: return
_compilation
.GetSpecialType(SpecialType.System_Boolean);
822
case BinaryOperatorKind.Object: return
_compilation
.GetSpecialType(SpecialType.System_Object);
826
return
_compilation
.GetSpecialType(SpecialType.System_String);
839
BinaryOperatorKind.Int =>
_compilation
.GetSpecialType(SpecialType.System_Int32),
840
BinaryOperatorKind.UInt =>
_compilation
.GetSpecialType(SpecialType.System_UInt32),
841
BinaryOperatorKind.Long =>
_compilation
.GetSpecialType(SpecialType.System_Int64),
842
BinaryOperatorKind.ULong =>
_compilation
.GetSpecialType(SpecialType.System_UInt64),
843
BinaryOperatorKind.NInt =>
_compilation
.CreateNativeIntegerTypeSymbol(signed: true),
844
BinaryOperatorKind.NUInt =>
_compilation
.CreateNativeIntegerTypeSymbol(signed: false),
845
BinaryOperatorKind.Float =>
_compilation
.GetSpecialType(SpecialType.System_Single),
846
BinaryOperatorKind.Double =>
_compilation
.GetSpecialType(SpecialType.System_Double),
847
BinaryOperatorKind.Decimal =>
_compilation
.GetSpecialType(SpecialType.System_Decimal),
848
BinaryOperatorKind.Bool =>
_compilation
.GetSpecialType(SpecialType.System_Boolean),
852
return
_compilation
.GetOrCreateNullableType(typeArgument);