23 references to Type
Microsoft.CodeAnalysis.CSharp (23)
CodeGen\EmitExpression.cs (12)
3841
Debug.Assert(expr.
Type
.IsReferenceType);
3849
if (IsVarianceCast(expr.
Type
, mergeTypeOfLeftValue))
3851
EmitStaticCast(expr.
Type
, expr.Syntax);
3852
mergeTypeOfLeftValue = expr.
Type
;
3854
else if (expr.
Type
.IsInterfaceType() && !TypeSymbol.Equals(expr.
Type
, mergeTypeOfLeftValue, TypeCompareKind.ConsiderEverything2))
3856
EmitStaticCast(expr.
Type
, expr.Syntax);
3862
if (expr.
Type
.IsTypeParameter())
3864
EmitBox(expr.
Type
, expr.LeftOperand.Syntax);
3879
if (IsVarianceCast(expr.
Type
, mergeTypeOfRightValue))
3881
EmitStaticCast(expr.
Type
, expr.Syntax);
3882
mergeTypeOfRightValue = expr.
Type
;
CodeGen\Optimizer.cs (1)
1583
return node.Update(left, right, node.LeftPlaceholder, node.LeftConversion, node.OperatorResultKind, @checked: node.Checked, node.
Type
);
FlowAnalysis\NullableWalker.cs (2)
5595
SetResultType(node, TypeWithState.Create(node.
Type
, rightUnconditionalResult.State));
5620
BoundNullCoalescingOperatorResultKind.NoCommonType => (node.
Type
, NullableFlowState.NotNull),
Generated\BoundNodes.xml.Generated.cs (4)
1923
if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || leftPlaceholder != this.LeftPlaceholder || leftConversion != this.LeftConversion || operatorResultKind != this.OperatorResultKind || @checked != this.Checked || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
11070
TypeSymbol? type = this.VisitType(node.
Type
);
12838
updatedNode = node.Update(leftOperand, rightOperand, leftPlaceholder, leftConversion, node.OperatorResultKind, node.Checked, node.
Type
);
15374
new TreeDumperNode("type", node.
Type
, null),
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
17
TypeSymbol? rewrittenResultType = VisitType(node.
Type
);
Lowering\SpillSequenceSpiller.cs (2)
1250
var tmp = _F.SynthesizedLocal(node.
Type
, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax);
1260
return UpdateExpression(builder, node.Update(left, right, node.LeftPlaceholder, node.LeftConversion, node.OperatorResultKind, @checked: node.Checked, node.
Type
));
Operations\CSharpOperationFactory.cs (1)
1596
boundNullCoalescingOperator.
Type
.Equals(boundNullCoalescingOperator.LeftOperand.Type?.StrippedType(), TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes))