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)
384FUNDTYPE ftSrc = expr.Type.FundamentalType; 385FUNDTYPE ftDest = dest.FundamentalType; 399if (expr.Type is NullType && dest.FundamentalType != FUNDTYPE.FT_REF) 474FUNDTYPE exprType = expr.Type.FundamentalType; 521if (expr.Type is NullType && dest.FundamentalType != FUNDTYPE.FT_REF) 772if ((ftTo = typeTo.FundamentalType) <= FUNDTYPE.FT_LASTNUMERIC && ftTo > FUNDTYPE.FT_NONE && 773(ftFrom = typeFrom.FundamentalType) <= FUNDTYPE.FT_LASTNUMERIC && ftFrom > FUNDTYPE.FT_NONE) 1151FUNDTYPE ftSrc = exprSrc.Type.FundamentalType; 1152FUNDTYPE ftDest = typeDest.FundamentalType; 1190if (constSrc.Type.FundamentalType == FUNDTYPE.FT_U8) 1421FUNDTYPE ftSrc = srcType.FundamentalType; 1463FUNDTYPE ftDest = destType.FundamentalType;
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
385if (_typeSrc is PointerType || _typeSrc.FundamentalType <= FUNDTYPE.FT_LASTINTEGRAL && _typeSrc.IsNumericType)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (4)
376exprSrc.Type.FundamentalType == typeDest.FundamentalType && 1445FUNDTYPE ftSrc = exprSrc.Type.FundamentalType; 1446FUNDTYPE 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)
130Debug.Assert(type.FundamentalType > FUNDTYPE.FT_NONE); 131Debug.Assert(type.FundamentalType < FUNDTYPE.FT_COUNT); 132switch (type.FundamentalType)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (3)
144FUNDTYPE ftDest = _typeDest.FundamentalType; 403FUNDTYPE ftDest = _typeDest.FundamentalType; 589if (pSource.OwningAggregate.IsStruct() && _typeDest.FundamentalType == FUNDTYPE.FT_REF)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (11)
971Debug.Assert(type1.FundamentalType != FUNDTYPE.FT_VAR); 972if (type1.FundamentalType != FUNDTYPE.FT_REF) 987Debug.Assert(type2.FundamentalType != FUNDTYPE.FT_VAR); 988if (type2.FundamentalType != FUNDTYPE.FT_REF) 1190PredefinedType ptOp = nonNub.FundamentalType switch 1647FUNDTYPE ft = typeRaw.FundamentalType; 1670if (type.IsEnumType && type.FundamentalType > FUNDTYPE.FT_LASTINTEGRAL) 1676Debug.Assert(type.FundamentalType != FUNDTYPE.FT_PTR); // Can't have a pointer. 1677switch (type.FundamentalType) 2144PredefinedType ptOp = typeEnum.FundamentalType switch 2307if (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");