37 references to Type
Microsoft.CodeAnalysis.CSharp (37)
CodeGen\EmitExpression.cs (15)
3746(IsNumeric(expr.Type) || expr.Type.PrimitiveTypeCode == Cci.PrimitiveTypeCode.Boolean) && 3752var toType = expr.Type.PrimitiveTypeCode; 3788if (IsVarianceCast(expr.Type, mergeTypeOfAlternative)) 3790EmitStaticCast(expr.Type, expr.Syntax); 3791mergeTypeOfAlternative = expr.Type; 3793else if (expr.Type.IsInterfaceType() && !TypeSymbol.Equals(expr.Type, mergeTypeOfAlternative, TypeCompareKind.ConsiderEverything2)) 3795EmitStaticCast(expr.Type, expr.Syntax); 3812if (IsVarianceCast(expr.Type, mergeTypeOfConsequence)) 3814EmitStaticCast(expr.Type, expr.Syntax); 3815mergeTypeOfConsequence = expr.Type; 3817else if (expr.Type.IsInterfaceType() && !TypeSymbol.Equals(expr.Type, mergeTypeOfConsequence, TypeCompareKind.ConsiderEverything2)) 3819EmitStaticCast(expr.Type, expr.Syntax);
CodeGen\Optimizer.cs (1)
1470return node.Update(node.IsRef, condition, consequence, alternative, node.ConstantValueOpt, node.NaturalTypeOpt, node.WasCompilerGenerated, node.Type);
Compilation\CSharpSemanticModel.cs (1)
2153convertedType = cond.Type;
Generated\BoundNodes.xml.Generated.cs (4)
2036if (isRef != this.IsRef || condition != this.Condition || consequence != this.Consequence || alternative != this.Alternative || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11093TypeSymbol? type = this.VisitType(node.Type); 12894updatedNode = node.Update(node.IsRef, condition, consequence, alternative, node.ConstantValueOpt, naturalTypeOpt, node.WasTargetTyped, node.Type); 15408new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
1614Debug.Assert(TypeSymbol.Equals(seq.Type, conditional.Type, TypeCompareKind.ConsiderEverything2)); 1615Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Consequence.Type, TypeCompareKind.ConsiderEverything2)); 1616Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2));
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (2)
29return node.Update(node.IsRef, rewrittenCondition, rewrittenConsequence, rewrittenAlternative, node.ConstantValueOpt, node.NaturalTypeOpt, node.WasTargetTyped, node.Type); 38node.Type,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1311Debug.Assert(TypeSymbol.Equals(seq.Type, conditional.Type, TypeCompareKind.ConsiderEverything2)); 1312Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Consequence.Type, TypeCompareKind.ConsiderEverything2)); 1313Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
327Debug.Assert(TypeSymbol.Equals(seq.Type, conditional.Type, TypeCompareKind.ConsiderEverything2)); 328Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Consequence.Type, TypeCompareKind.ConsiderEverything2)); 329Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2));
Lowering\SpillSequenceSpiller.cs (5)
1117return UpdateExpression(conditionBuilder, node.Update(node.IsRef, condition, consequence, alternative, node.ConstantValueOpt, node.NaturalTypeOpt, node.WasTargetTyped, node.Type)); 1124if (node.Type.IsVoidType()) 1131return conditionBuilder.Update(_F.Default(node.Type)); 1135var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1170return conditionBuilder.Update(node.Update(node.IsRef, condition, consequence, alternative, node.ConstantValueOpt, node.NaturalTypeOpt, node.WasTargetTyped, node.Type));