141 references to System_DateTime
Microsoft.CodeAnalysis (33)
ConstantValue.cs (2)
451case SpecialType.System_DateTime: return ConstantValueTypeDiscriminator.DateTime; 503case ConstantValueTypeDiscriminator.DateTime: return SpecialType.System_DateTime;
ConstantValueSpecialized.cs (1)
289get { return SpecialType.System_DateTime; }
MetadataReader\MetadataDecoder.cs (1)
1014else if (type.SpecialType == SpecialType.System_DateTime)
SpecialMembers.cs (24)
653(byte)SpecialType.System_DateTime, // DeclaringTypeId 655(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Field Signature 659(byte)SpecialType.System_DateTime, // DeclaringTypeId 667(byte)SpecialType.System_DateTime, // DeclaringTypeId 671(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 672(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 676(byte)SpecialType.System_DateTime, // DeclaringTypeId 680(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 681(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 685(byte)SpecialType.System_DateTime, // DeclaringTypeId 689(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 690(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 694(byte)SpecialType.System_DateTime, // DeclaringTypeId 698(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 699(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 703(byte)SpecialType.System_DateTime, // DeclaringTypeId 707(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 708(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 712(byte)SpecialType.System_DateTime, // DeclaringTypeId 716(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 717(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 721(byte)SpecialType.System_DateTime, // DeclaringTypeId 725(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 726(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime,
SpecialTypeExtensions.cs (2)
83case SpecialType.System_DateTime: 342return SpecialType.System_DateTime;
WellKnownMembers.cs (3)
1434(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Return Type 1531(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, 1650(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_DateTime, // Return Type
Microsoft.CodeAnalysis.CodeStyle (5)
ITypeSymbolExtensions.cs (1)
665case SpecialType.System_DateTime:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (2)
83case SpecialType.System_DateTime: 342return SpecialType.System_DateTime;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
30SpecialType.System_DateTime => PredefinedType.DateTime,
PredefinedTypeExtensions.cs (1)
30PredefinedType.DateTime => SpecialType.System_DateTime,
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Conversions.cs (1)
805SpecialType.System_DateTime => WellKnownMember.System_Runtime_CompilerServices_DateTimeConstantAttribute__ctor,
Binder\Binder_Invocation.cs (1)
1432if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Semantics\Conversions\Conversions.cs (1)
81SpecialType.System_DateTime => WellKnownMember.System_Runtime_CompilerServices_DateTimeConstantAttribute__ctor,
Emitter\Model\ParameterSymbolAdapter.cs (1)
242this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_DateTime;
FlowAnalysis\AbstractFlowPass.cs (1)
1386case SpecialType.System_DateTime:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
680rewrittenOperand.Type.SpecialType != SpecialType.System_DateTime)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (2)
38Debug.Assert(type is { SpecialType: SpecialType.System_DateTime }); 152Debug.Assert(ctor.ContainingType.SpecialType == SpecialType.System_DateTime);
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
202SpecialType.System_DateTime => compilation.SynthesizeDateTimeConstantAttribute(defaultValue.DateTimeValue),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
213Assert.Equal(SpecialType.System_DateTime, p1Type.PointedAtType.SpecialType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
106(SpecialType.System_DateTime, double doubleVal) => ConstantValue.Create(DateTimeUtilities.ToDateTime(doubleVal)),
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
103case SpecialType.System_DateTime:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
347return SpecialType.System_DateTime;
Microsoft.CodeAnalysis.VisualBasic (53)
Binding\Binder_Conversions.vb (1)
274Case SyntaxKind.CDateKeyword : targetType = SpecialType.System_DateTime
Binding\Binder_Initializers.vb (1)
159If fieldSymbol.Type.SpecialType = SpecialType.System_DateTime Then
Binding\Binder_Lookup.vb (1)
453Return SpecialType.System_DateTime
Binding\Binder_Symbols.vb (1)
772type = SpecialType.System_DateTime
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
358type = SpecialType.System_DateTime
CodeGen\EmitExpression.vb (1)
643If field.IsConst AndAlso specType <> SpecialType.System_Decimal AndAlso specType <> SpecialType.System_DateTime Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
201ElseIf operandUnderlyingSpecialType = SpecialType.System_DateTime Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
576Case SpecialType.System_DateTime : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDateTime 581Case SpecialType.System_DateTime
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
147currentMethod.ContainingType.SpecialType <> SpecialType.System_DateTime) Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (3)
937Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateObject 1030Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDateTime 1102Case SpecialType.System_DateTime : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateString
Preprocessor\CConst.vb (2)
47Case SpecialType.System_DateTime 137Return New CConst(Of Date)(value, SpecialType.System_DateTime)
Preprocessor\ExpressionEvaluator.vb (18)
36Const _DateTime = CType(SpecialType.System_DateTime, Byte) 97Case SpecialType.System_DateTime 393Return SpecialType.System_DateTime 490specialType = SpecialType.System_DateTime 622Case SpecialType.System_DateTime 623Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 670Case SpecialType.System_DateTime 671Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), toSpecialType.GetDisplayName()) 714Case SpecialType.System_DateTime 743Case SpecialType.System_DateTime 769If fromSpecialType = SpecialType.System_DateTime Then 774Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 779Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 782Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 795Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 821Case SpecialType.System_DateTime 858specialType = SpecialType.System_Char OrElse specialType = SpecialType.System_DateTime Then 1112If left.SpecialType.IsIntegralType() OrElse left.SpecialType = SpecialType.System_Char OrElse left.SpecialType = SpecialType.System_DateTime Then
Preprocessor\OperatorResolution.vb (2)
56Case SpecialType.System_DateTime 95Const t_date As Byte = CType(SpecialType.System_DateTime, Byte)
Preprocessor\TypeHelpers.vb (1)
33If specialType = SpecialType.System_DateTime Then
Semantics\Operators.vb (1)
1737Const tDat As SByte = SpecialType.System_DateTime
Symbols\FieldSymbol.vb (2)
104Return specialType <> Microsoft.CodeAnalysis.SpecialType.System_DateTime AndAlso specialType <> Microsoft.CodeAnalysis.SpecialType.System_Decimal 122Return specialType = Microsoft.CodeAnalysis.SpecialType.System_DateTime OrElse specialType = Microsoft.CodeAnalysis.SpecialType.System_Decimal
Symbols\Metadata\PE\PEFieldSymbol.vb (3)
164If Me.Type.SpecialType = SpecialType.System_DateTime Then 240ElseIf selfOrUnderlyingSpecialType = SpecialType.System_DateTime Then 274If Me.Type.SpecialType = SpecialType.System_DateTime Then
Symbols\Source\SourceComplexParameterSymbol.vb (1)
378Case SpecialType.System_DateTime
Symbols\Source\SourceFieldSymbol.vb (1)
663If Me.Type.SpecialType = SpecialType.System_DateTime Then
Symbols\Source\SourceParameterSymbolBase.vb (1)
60Case SpecialType.System_DateTime
Symbols\SpecialTypeExtensions.vb (6)
40SpecialType.System_DateTime, 173Case SpecialType.System_DateTime 220Case SpecialType.System_DateTime 267Case SpecialType.System_DateTime 305Case SpecialType.System_DateTime 367Case SpecialType.System_DateTime
Symbols\TypeSymbolExtensions.vb (2)
361Return this.SpecialType = SpecialType.System_DateTime 454Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
CastAnalyzer.vb (2)
400ElseIf castType.SpecialType = SpecialType.System_DateTime 401Return Not outerType.SpecialType = SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
ITypeSymbolExtensions.vb (3)
27Case specialType.System_DateTime 69specialType = specialType.System_DateTime 116SpecialType.System_DateTime,
StringExtensions.vb (1)
109SpecialType.System_DateTime,
TypeSyntaxGeneratorVisitor.vb (1)
126Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
92SpecialType.System_DateTime,
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
48Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2778Assert.Equal(compilation.GetSpecialType(System_DateTime), local.Type)
Semantics\BinaryOperators.vb (2)
1097(op = BinaryOperatorKind.Subtract AndAlso leftSpecial = SpecialType.System_DateTime AndAlso rightSpecial = SpecialType.System_DateTime)) Then
Semantics\Conversions.vb (5)
244Dim dateType = c1.GetSpecialType(System_DateTime) 1095Dim dateType = c1.GetSpecialType(System_DateTime) 2041c1.GetSpecialType(System_DateTime), 2056nullable.Construct(c1.GetSpecialType(System_DateTime)) 2181Private Const s_date = System_DateTime
Semantics\GetExtendedSemanticInfoTests.vb (1)
2948Assert.Equal(System_DateTime, semanticInfo.Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
25Assert.Equal(ConstantValueTypeDiscriminator.DateTime, SpecialType.System_DateTime.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CastAnalyzer.vb (2)
400ElseIf castType.SpecialType = SpecialType.System_DateTime 401Return Not outerType.SpecialType = SpecialType.System_DateTime
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
444Case SpecialType.System_DateTime
ITypeSymbolExtensions.vb (3)
27Case specialType.System_DateTime 69specialType = specialType.System_DateTime 116SpecialType.System_DateTime,
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
53Case SpecialType.System_DateTime
StringExtensions.vb (1)
109SpecialType.System_DateTime,
TypeSyntaxGeneratorVisitor.vb (1)
126Case SpecialType.System_DateTime
Microsoft.CodeAnalysis.Workspaces (6)
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (2)
83case SpecialType.System_DateTime: 342return SpecialType.System_DateTime;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
665case SpecialType.System_DateTime:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
30SpecialType.System_DateTime => PredefinedType.DateTime,
PredefinedTypeExtensions.cs (1)
30PredefinedType.DateTime => SpecialType.System_DateTime,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
423case SpecialType.System_DateTime:
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SymbolKeyTests.cs (3)
732var a_string_b_int_m_datetime = ((IMethodSymbol)a_string_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 737var a_b_int_m_datetime = ((IMethodSymbol)a_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 742var a_b_m_datetime = ((IMethodSymbol)a_b_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime));