61 references to Type
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder.ValueChecks.cs (1)
5485return 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)
2775node.Type.OriginalDefinition.Equals(compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions))
FlowAnalysis\NullableWalker.cs (4)
2029var convertedType = conv.Type; 2046TypeSymbol.Equals(conv.Type, conv.Operand.Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes): 5581TypeWithAnnotations targetType = fromExplicitCast ? explicitType : TypeWithAnnotations.Create(boundConversion.Type); 8114TypeWithAnnotations targetType = fromExplicitCast ? explicitType : TypeWithAnnotations.Create(node.Type);
Generated\BoundNodes.xml.Generated.cs (4)
2983if (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)) 11239TypeSymbol? type = this.VisitType(node.Type); 13276updatedNode = node.Update(operand, node.Conversion, node.IsBaseConversion, node.Checked, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, node.OriginalUserDefinedConversionsOpt, node.Type); 15631new TreeDumperNode("type", node.Type, null),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1410type: conversion.Type);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
473conversion.Type.StrippedType().IsEnumType()) 612type: conversion.Type); 625return DelegateCreation(mg.ReceiverOpt, node.SymbolOpt, node.Type, !node.SymbolOpt.RequiresInstanceReceiver && !node.IsExtensionMethod); 638var resultType = (isLifted && method.ReturnType.IsNonNullableValueType() && node.Type.IsNullableType()) ? 647return Convert(e2, resultType, node.Type, node.Checked, false); 653return node.ExplicitCastInCode ? Convert(operand, node.Type, false) : operand; 658return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.Checked, node.ExplicitCastInCode); 663var nullable = (NamedTypeSymbol)node.Type; 666return Convert(e1, intermediate, node.Type, node.Checked, false); 669return Convert(Constant(_bound.Null(_objectType)), _objectType, node.Type, false, node.ExplicitCastInCode); 671return Convert(Visit(node.Operand), node.Operand.Type, node.Type, node.Checked, node.ExplicitCastInCode);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
769CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type); 774if (!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 }: 927type: conversion.Type.StrippedType(),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
35result = MakeImplicitConversionForInterpolatedString(result, conversion.Type);
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())