37 references to Type
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_TupleOperators.cs (1)
106
PrepareBoolConversionAndTruthOperator(binary.
Type
, node, kind, diagnostics,
BoundTree\BoundTreeRewriter.cs (2)
252
return node.Update(node.OperatorKind, VisitBinaryOperatorData(node), node.ResultKind, (BoundExpression)this.Visit(node.Left), (BoundExpression)this.Visit(node.Right), this.VisitType(node.
Type
));
281
var type = this.VisitType(binary.
Type
);
BoundTree\Constructors.cs (1)
453
return Update(OperatorKind, uncommonData, ResultKind, Left, Right,
Type
);
BoundTree\NullabilityRewriter.cs (1)
96
var type = foundInfo ? infoAndType.Type : currentBinary.
Type
;
CodeGen\Optimizer.cs (3)
1525
var type = this.VisitType(binary.
Type
);
1560
return node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.
Type
);
2100
var type = this.VisitType(binary.
Type
);
Compilation\CSharpSemanticModel.cs (4)
3873
binaryOperator.
Type
.SpecialType == SpecialType.System_Boolean)
3876
var objectType = binaryOperator.
Type
.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
3881
binaryOperator.
Type
));
3888
binaryOperator.
Type
,
FlowAnalysis\NullableWalker.cs (6)
5269
Debug.Assert(binary.
Type
.SpecialType == SpecialType.System_Boolean);
5270
SetResult(binary, TypeWithState.ForType(binary.
Type
), TypeWithAnnotations.Create(binary.
Type
));
5284
var inferredResult = ReinferAndVisitBinaryOperator(binary, binary.OperatorKind, binary.Method, binary.
Type
, binary.Left, leftOperand, leftConversion, leftType, binary.Right, rightOperand, rightConversion, rightType);
12134
SetResultType(node, InferResultNullability(node.OperatorKind, node.Method, node.
Type
, leftType, rightType));
12206
SetResultType(binary, InferResultNullability(binary.OperatorKind, logicalOperator, binary.
Type
, leftType, rightType));
Generated\BoundNodes.xml.Generated.cs (6)
1664
if (operatorKind != this.OperatorKind || data != this.Data || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
1755
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) || trueFalseOperandPlaceholder != this.TrueFalseOperandPlaceholder || trueFalseOperandConversion != this.TrueFalseOperandConversion || !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))
11067
TypeSymbol? type = this.VisitType(node.
Type
);
11088
TypeSymbol? type = this.VisitType(node.
Type
);
15449
new TreeDumperNode("type", node.
Type
, null),
15478
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
;
118
Debug.Assert(node.
Type
.SpecialType == SpecialType.System_String, "Non-string binary addition should have been handled by VisitConversion or VisitArguments");
120
return LowerPartsToString(data, parts, node.Syntax, node.
Type
);
159
loweredLeft = MakeBinaryOperator(original, original.Syntax, original.OperatorKind, loweredLeft, loweredRight, original.
Type
, original.Method, original.ConstrainedToType,
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
563
currentResult = new BoundBinaryOperator(current.Syntax, current.OperatorKind, constantValueOpt: null, method, constrainedToTypeOpt: null, default(LookupResultKind), currentResult, right, current.
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() &&