6 overrides of FundamentalType
Microsoft.CSharp (6)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
343public override FUNDTYPE FundamentalType
Microsoft\CSharp\RuntimeBinder\Semantics\Types\ArrayType.cs (1)
61public override FUNDTYPE FundamentalType => FUNDTYPE.FT_REF;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (1)
56public override FUNDTYPE FundamentalType => FUNDTYPE.FT_STRUCT;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullType.cs (1)
21public override FUNDTYPE FundamentalType => FUNDTYPE.FT_REF;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs (1)
30public override FUNDTYPE FundamentalType => FUNDTYPE.FT_PTR;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs (1)
68public override FUNDTYPE FundamentalType => FUNDTYPE.FT_VAR;
41 references to FundamentalType
Microsoft.CSharp (41)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (12)
374FUNDTYPE ftSrc = expr.Type.FundamentalType; 375FUNDTYPE ftDest = dest.FundamentalType; 389if (expr.Type is NullType && dest.FundamentalType != FUNDTYPE.FT_REF) 459FUNDTYPE exprType = expr.Type.FundamentalType; 506if (expr.Type is NullType && dest.FundamentalType != FUNDTYPE.FT_REF) 745if ((ftTo = typeTo.FundamentalType) <= FUNDTYPE.FT_LASTNUMERIC && ftTo > FUNDTYPE.FT_NONE && 746(ftFrom = typeFrom.FundamentalType) <= FUNDTYPE.FT_LASTNUMERIC && ftFrom > FUNDTYPE.FT_NONE) 1120FUNDTYPE ftSrc = exprSrc.Type.FundamentalType; 1121FUNDTYPE ftDest = typeDest.FundamentalType; 1159if (constSrc.Type.FundamentalType == FUNDTYPE.FT_U8) 1387FUNDTYPE ftSrc = srcType.FundamentalType; 1429FUNDTYPE ftDest = destType.FundamentalType;
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
384if (_typeSrc is PointerType || _typeSrc.FundamentalType <= FUNDTYPE.FT_LASTINTEGRAL && _typeSrc.IsNumericType)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (4)
368exprSrc.Type.FundamentalType == typeDest.FundamentalType && 1417FUNDTYPE ftSrc = exprSrc.Type.FundamentalType; 1418FUNDTYPE ftDest = typeDest.FundamentalType;
Microsoft\CSharp\RuntimeBinder\Semantics\EXPRExtensions.cs (1)
64=> expr is ExprConstant constant && expr.Type.FundamentalType == FUNDTYPE.FT_REF && constant.Val.IsNullRef;
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (3)
113Debug.Assert(type.FundamentalType > FUNDTYPE.FT_NONE); 114Debug.Assert(type.FundamentalType < FUNDTYPE.FT_COUNT); 115switch (type.FundamentalType)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (3)
143FUNDTYPE ftDest = _typeDest.FundamentalType; 401FUNDTYPE ftDest = _typeDest.FundamentalType; 587if (pSource.OwningAggregate.IsStruct() && _typeDest.FundamentalType == FUNDTYPE.FT_REF)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (11)
948Debug.Assert(type1.FundamentalType != FUNDTYPE.FT_VAR); 949if (type1.FundamentalType != FUNDTYPE.FT_REF) 964Debug.Assert(type2.FundamentalType != FUNDTYPE.FT_VAR); 965if (type2.FundamentalType != FUNDTYPE.FT_REF) 1165PredefinedType ptOp = nonNub.FundamentalType switch 1613FUNDTYPE ft = typeRaw.FundamentalType; 1635if (type.IsEnumType && type.FundamentalType > FUNDTYPE.FT_LASTINTEGRAL) 1641Debug.Assert(type.FundamentalType != FUNDTYPE.FT_PTR); // Can't have a pointer. 1642switch (type.FundamentalType) 2093PredefinedType ptOp = typeEnum.FundamentalType switch 2254if (ptOp == PredefinedType.PT_UINT && op.Type.FundamentalType == FUNDTYPE.FT_U4)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs (6)
30switch (Type.FundamentalType) 41Type.FundamentalType == FUNDTYPE.FT_I1 || Type.FundamentalType == FUNDTYPE.FT_I2 42|| Type.FundamentalType == FUNDTYPE.FT_I4 || Type.FundamentalType == FUNDTYPE.FT_U1 43|| Type.FundamentalType == FUNDTYPE.FT_U2, "Bad fundType in getI64Value");