28 references to PrimitiveTypeCode
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Symbols.cs (1)
2250if ((object)singleType != null && singleType.PrimitiveTypeCode == Cci.PrimitiveTypeCode.Void && simpleName == "Void")
CodeGen\EmitAddress.cs (1)
389TreatLongsAsNative(index.Type.PrimitiveTypeCode);
CodeGen\EmitConversion.cs (8)
18switch (type.PrimitiveTypeCode) 140var fromPredefTypeKind = fromType.PrimitiveTypeCode; 143var toPredefTypeKind = toType.PrimitiveTypeCode; 192switch (conversion.Type.PrimitiveTypeCode) 215var fromPredefTypeKind = fromType.PrimitiveTypeCode; 219var toPredefTypeKind = toType.PrimitiveTypeCode; 296var fromPredefTypeKind = fromType.PrimitiveTypeCode; 305var toPredefTypeKind = toType.PrimitiveTypeCode;
CodeGen\EmitExpression.cs (7)
1023switch (elementType.PrimitiveTypeCode) 1439switch (type.PrimitiveTypeCode) 2355var typeTo = expression.Type.PrimitiveTypeCode; 3220switch (elementType.PrimitiveTypeCode) 3318switch (type.PrimitiveTypeCode) 3746(IsNumeric(expr.Type) || expr.Type.PrimitiveTypeCode == Cci.PrimitiveTypeCode.Boolean) && 3752var toType = expr.Type.PrimitiveTypeCode;
CodeGen\EmitStatement.cs (5)
208var tc = ts.PrimitiveTypeCode; 258bool isBool = nonConstType.PrimitiveTypeCode == Microsoft.Cci.PrimitiveTypeCode.Boolean; 1324_builder.EmitIntegerSwitchJumpTable(switchCaseLabels, fallThroughLabel, key, expression.Type.EnumUnderlyingTypeOrSelf().PrimitiveTypeCode); 1411fallThroughLabel, stringLength, int32Type.PrimitiveTypeCode); 1448fallThroughLabel, charTemp, charType.PrimitiveTypeCode);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
67return AdaptedNamedTypeSymbol.PrimitiveTypeCode;
Symbols\Metadata\PE\SymbolFactory.cs (1)
61return type.PrimitiveTypeCode;
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
128Debug.Assert(t.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
164Debug.Assert(symbol.Kind != SymbolKind.NamedType || ((NamedTypeSymbol)symbol).PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive); 219Cci.PrimitiveTypeCode typeCode = type.PrimitiveTypeCode;
Symbols\TypeWithAnnotations.cs (1)
273public Cci.PrimitiveTypeCode PrimitiveTypeCode => Type.PrimitiveTypeCode;