34 references to Type
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_TupleOperators.cs (1)
106
PrepareBoolConversionAndTruthOperator(binary.
Type
, node, kind, diagnostics,
BoundTree\BoundTreeRewriter.cs (1)
144
var type = this.VisitType(binary.
Type
);
BoundTree\Constructors.cs (1)
480
return Update(OperatorKind, uncommonData, ResultKind, Left, Right,
Type
);
BoundTree\NullabilityRewriter.cs (1)
96
var type = foundInfo ? infoAndType.Type : currentBinary.
Type
;
CodeGen\Optimizer.cs (3)
1526
var type = this.VisitType(binary.
Type
);
1561
return node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.
Type
);
2101
var type = this.VisitType(binary.
Type
);
Compilation\CSharpSemanticModel.cs (4)
3861
binaryOperator.
Type
.SpecialType == SpecialType.System_Boolean)
3864
var objectType = binaryOperator.
Type
.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
3869
binaryOperator.
Type
));
3876
binaryOperator.
Type
,
FlowAnalysis\NullableWalker.cs (3)
5067
var inferredResult = ReinferAndVisitBinaryOperator(binary, binary.OperatorKind, binary.Method, binary.
Type
, binary.Left, leftOperand, leftConversion, leftType, binary.Right, rightOperand, rightConversion, rightType);
11337
return TypeWithState.Create(node.
Type
, NullableFlowState.NotNull);
11415
BoundBinaryOperator binary => InferResultNullability(binary.OperatorKind, binary.Method, binary.
Type
, leftType, rightType),
Generated\BoundNodes.xml.Generated.cs (6)
1683
if (operatorKind != this.OperatorKind || data != this.Data || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
1766
if (operatorKind != this.OperatorKind || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(logicalOperator, this.LogicalOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(trueOperator, this.TrueOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(falseOperator, this.FalseOperator) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
11021
TypeSymbol? type = this.VisitType(node.
Type
);
11036
TypeSymbol? type = this.VisitType(node.
Type
);
15298
new TreeDumperNode("type", node.
Type
, null),
15325
new TreeDumperNode("type", node.
Type
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
195
return VisitBinaryOperator(binOp.OperatorKind, binOp.Method, binOp.
Type
, binOp.Left, binOp.Right);
198
return VisitBinaryOperator(userDefCondLogOp.OperatorKind, userDefCondLogOp.LogicalOperator, userDefCondLogOp.
Type
, userDefCondLogOp.Left, userDefCondLogOp.Right);
Lowering\DiagnosticsPass_Warnings.cs (3)
830
Error(ErrorCode.WRN_AlwaysNull, node, node.
Type
);
836
Error(ErrorCode.WRN_AlwaysNull, node, node.
Type
);
847
Error(ErrorCode.WRN_AlwaysNull, node, node.
Type
);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
73
var type = node.
Type
;
117
Debug.Assert(node.
Type
.SpecialType == SpecialType.System_String, "Non-string binary addition should have been handled by VisitConversion or VisitArguments");
119
return LowerPartsToString(data, parts, node.Syntax, node.
Type
);
152
loweredLeft = MakeBinaryOperator(original, original.Syntax, original.OperatorKind, loweredLeft, loweredRight, original.
Type
, original.Method, original.ConstrainedToType,
Lowering\MethodToClassRewriter.cs (2)
278
VisitType(node.
Type
));
321
VisitType(node.
Type
));
Lowering\SpillSequenceSpiller.cs (2)
996
var tmp = _F.SynthesizedLocal(node.
Type
, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax);
1013
return UpdateExpression(builder, node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.
Type
));
Operations\CSharpOperationFactory.cs (1)
1514
if (boundBinaryOperator.
Type
.IsDynamic() &&