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)
264case UnaryOperatorKind.SByte: opType = _compilation.GetSpecialType(SpecialType.System_SByte); break; 265case UnaryOperatorKind.Byte: opType = _compilation.GetSpecialType(SpecialType.System_Byte); break; 266case UnaryOperatorKind.Short: opType = _compilation.GetSpecialType(SpecialType.System_Int16); break; 267case UnaryOperatorKind.UShort: opType = _compilation.GetSpecialType(SpecialType.System_UInt16); break; 268case UnaryOperatorKind.Int: opType = _compilation.GetSpecialType(SpecialType.System_Int32); break; 269case UnaryOperatorKind.UInt: opType = _compilation.GetSpecialType(SpecialType.System_UInt32); break; 270case UnaryOperatorKind.Long: opType = _compilation.GetSpecialType(SpecialType.System_Int64); break; 271case UnaryOperatorKind.ULong: opType = _compilation.GetSpecialType(SpecialType.System_UInt64); break; 272case UnaryOperatorKind.NInt: opType = _compilation.CreateNativeIntegerTypeSymbol(signed: true); break; 273case UnaryOperatorKind.NUInt: opType = _compilation.CreateNativeIntegerTypeSymbol(signed: false); break; 274case UnaryOperatorKind.Char: opType = _compilation.GetSpecialType(SpecialType.System_Char); break; 275case UnaryOperatorKind.Float: opType = _compilation.GetSpecialType(SpecialType.System_Single); break; 276case UnaryOperatorKind.Double: opType = _compilation.GetSpecialType(SpecialType.System_Double); break; 277case UnaryOperatorKind.Decimal: opType = _compilation.GetSpecialType(SpecialType.System_Decimal); break; 278case UnaryOperatorKind.Bool: opType = _compilation.GetSpecialType(SpecialType.System_Boolean); break; 284opType = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(opType); 692Debug.Assert(_compilation.IsReadOnlySpanType(readonlySpanOfByte)); 723TypeSymbol rightType = _compilation.GetSpecialType(SpecialType.System_Int32); 726rightType = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(rightType); 736return new BinaryOperatorSignature(kind, left, left, _compilation.GetSpecialType(SpecialType.System_Boolean)); 751case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 752case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32); 753case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64); 754case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64); 755case BinaryOperatorKind.NInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: true); 756case BinaryOperatorKind.NUInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: false); 757case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single); 758case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double); 759case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 760case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean); 763return _compilation.GetSpecialType(SpecialType.System_Object); 766return _compilation.GetSpecialType(SpecialType.System_String); 783case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 784case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32); 785case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64); 786case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64); 787case BinaryOperatorKind.NInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: true); 788case BinaryOperatorKind.NUInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: false); 789case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single); 790case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double); 791case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 792case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean); 795return _compilation.GetSpecialType(SpecialType.System_String); 798return _compilation.GetSpecialType(SpecialType.System_Object); 815case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 816case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32); 817case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64); 818case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64); 819case BinaryOperatorKind.NInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: true); 820case BinaryOperatorKind.NUInt: return _compilation.CreateNativeIntegerTypeSymbol(signed: false); 821case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single); 822case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double); 823case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 824case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean); 825case BinaryOperatorKind.Object: return _compilation.GetSpecialType(SpecialType.System_Object); 829return _compilation.GetSpecialType(SpecialType.System_String); 840var nullable = _compilation.GetSpecialType(SpecialType.System_Nullable_T); 844case BinaryOperatorKind.Int: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Int32)); 845case BinaryOperatorKind.UInt: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_UInt32)); 846case BinaryOperatorKind.Long: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Int64)); 847case BinaryOperatorKind.ULong: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_UInt64)); 848case BinaryOperatorKind.NInt: return nullable.Construct(_compilation.CreateNativeIntegerTypeSymbol(signed: true)); 849case BinaryOperatorKind.NUInt: return nullable.Construct(_compilation.CreateNativeIntegerTypeSymbol(signed: false)); 850case BinaryOperatorKind.Float: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Single)); 851case BinaryOperatorKind.Double: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Double)); 852case BinaryOperatorKind.Decimal: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Decimal)); 853case BinaryOperatorKind.Bool: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Boolean));