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