60 references to Type
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.ValueChecks.cs (1)
5504return GetInlineArrayConversionEquivalentSignatureMethod(inlineArray: conversion.Operand, resultType: conversion.Type, out arguments, out refKinds);
Binder\Binder_Attributes.cs (1)
910var type = node.Type;
Binder\Binder_Operators.cs (1)
69explicitCastInCode: true, conversion.ConstantValueOpt, conversion.ConversionGroupOpt, conversion.Type);
BoundTree\BoundExpression.cs (1)
480return this.Update(operand: operand, this.Conversion, this.IsBaseConversion, this.Checked, this.ExplicitCastInCode, this.ConstantValueOpt, this.ConversionGroupOpt, this.OriginalUserDefinedConversionsOpt, this.Type);
CodeGen\EmitConversion.cs (11)
142var toType = conversion.Type; 192switch (conversion.Type.PrimitiveTypeCode) 218var toType = conversion.Type; 239var resultType = conversion.Type; 243EmitSymbolToken(conversion.Type, conversion.Syntax); 251EmitStaticCast(conversion.Type, conversion.Syntax); 272if (conversion.Type.IsVerifierReference()) 275EmitSymbolToken(conversion.Type, conversion.Syntax); 280EmitSymbolToken(conversion.Type, conversion.Syntax); 288Debug.Assert(!conversion.Type.IsNullableType()); 299var toType = conversion.Type;
CodeGen\EmitOperators.cs (1)
375if (comparand is BoundConversion { Type.SpecialType: SpecialType.System_Object, ConversionKind: ConversionKind.Boxing, Operand.Type: TypeParameterSymbol { AllowsRefLikeType: true } } &&
Compilation\CSharpSemanticModel.cs (1)
2242else if (boundExpr is BoundConversion { ConversionKind: ConversionKind.MethodGroup, Conversion: var exprConversion, Type: { TypeKind: TypeKind.FunctionPointer }, SymbolOpt: var symbol })
FlowAnalysis\DefiniteAssignment.cs (1)
2808node.Type.OriginalDefinition.Equals(compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions))
FlowAnalysis\NullableWalker.cs (4)
2103var convertedType = conv.Type; 2120TypeSymbol.Equals(conv.Type, conv.Operand.Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes): 5758TypeWithAnnotations targetType = fromExplicitCast ? explicitType : TypeWithAnnotations.Create(boundConversion.Type); 8330TypeWithAnnotations targetType = fromExplicitCast ? explicitType : TypeWithAnnotations.Create(node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
2984if (operand != this.Operand || conversion != this.Conversion || isBaseConversion != this.IsBaseConversion || @checked != this.Checked || explicitCastInCode != this.ExplicitCastInCode || constantValueOpt != this.ConstantValueOpt || conversionGroupOpt != this.ConversionGroupOpt || originalUserDefinedConversionsOpt != this.OriginalUserDefinedConversionsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11278TypeSymbol? type = this.VisitType(node.Type); 13315updatedNode = node.Update(operand, node.Conversion, node.IsBaseConversion, node.Checked, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, node.OriginalUserDefinedConversionsOpt, node.Type); 15670new TreeDumperNode("type", node.Type, null),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1410type: conversion.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
539conversion.Type.StrippedType().IsEnumType()) 680type: conversion.Type); 693return DelegateCreation(mg.ReceiverOpt, node.SymbolOpt, node.Type, !node.SymbolOpt.RequiresInstanceReceiver && !node.IsExtensionMethod); 706var resultType = (isLifted && method.ReturnType.IsNonNullableValueType() && node.Type.IsNullableType()) ? 716return Convert(e2, resultType, node.Type, node.Checked, false); 722return node.ExplicitCastInCode ? Convert(operand, node.Type, false) : operand; 727return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.Checked, node.ExplicitCastInCode); 732var nullable = (NamedTypeSymbol)node.Type; 735return Convert(e1, intermediate, node.Type, node.Checked, false); 738return Convert(Constant(_bound.Null(_objectType)), _objectType, node.Type, false, node.ExplicitCastInCode); 740return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.Checked, node.ExplicitCastInCode);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
791CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type); 796if (!wasInExpressionLambda && node.Type.IsExpressionTree())
Lowering\DiagnosticsPass_Warnings.cs (2)
447if (!conversion.Operand.Type.SpecialType.IsIntegralType() || !conversion.Type.SpecialType.IsIntegralType()) 613TypeSymbol to = conv.Type;
Lowering\LocalRewriter\LocalRewriter.cs (1)
1117return expr is BoundConversion { Conversion: { IsInterpolatedStringHandler: true }, Type: { IsValueType: true } };
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
25Debug.Assert(node.Type is NamedTypeSymbol { IsInterpolatedStringHandlerType: true }); 50if (node.Type.IsNullableType()) 53return ConvertToNullable(node.Syntax, node.Type, objectCreation); 63return ConvertToNullable(node.Syntax, node.Type, rewrittenCollection); 69var rewrittenType = VisitType(node.Type); 81var toType = node.Type; 550case ConversionKind.MethodGroup when oldNodeOpt is { Type: { TypeKind: TypeKind.FunctionPointer } funcPtrType }: 1024type: conversion.Type.StrippedType(),
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (3)
63var resultTypes = conversion.Type.TupleElementTypesWithAnnotations; 85ImmutableArray<bool>.Empty, conversion.Type, conversion.HasErrors); 612constantValueOpt: conv.ConstantValueOpt, rewrittenType: conv.Type)
Lowering\MethodToClassRewriter.cs (1)
308VisitType(node.Type));
Lowering\SpillSequenceSpiller.cs (1)
1176if (node.ConversionKind == ConversionKind.AnonymousFunction && node.Type.IsExpressionTree())
Operations\CSharpOperationFactory.cs (4)
1034if (boundConversion.Type is FunctionPointerTypeSymbol) 1082if (boundOperand.Kind == BoundKind.ConvertedTupleLiteral && TypeSymbol.Equals(boundOperand.Type, boundConversion.Type, TypeCompareKind.ConsiderEverything2)) 1103!TypeSymbol.Equals(nestedConversion.Type, nestedOperand.Type, TypeCompareKind.ConsiderEverything2)) 1121boundConversion.Type.IsDelegateType())