38 references to Type
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_TupleOperators.cs (1)
106
PrepareBoolConversionAndTruthOperator(binary.
Type
, node, kind, diagnostics,
BoundTree\BoundTreeRewriter.cs (1)
145
var type = this.VisitType(binary.
Type
);
BoundTree\Constructors.cs (1)
423
return Update(OperatorKind, uncommonData, ResultKind, Left, Right,
Type
);
BoundTree\NullabilityRewriter.cs (1)
53
var type = foundInfo ? infoAndType.Type : currentBinary.
Type
;
CodeGen\Optimizer.cs (3)
1459
var type = this.VisitType(binary.
Type
);
1494
return node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.
Type
);
2034
var type = this.VisitType(binary.
Type
);
Compilation\CSharpSemanticModel.cs (4)
3849
binaryOperator.
Type
.SpecialType == SpecialType.System_Boolean)
3852
var objectType = binaryOperator.
Type
.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
3857
binaryOperator.
Type
));
3864
binaryOperator.
Type
,
FlowAnalysis\NullableWalker.cs (7)
4625
Debug.Assert(binary.
Type
.SpecialType == SpecialType.System_Boolean);
4626
SetResult(binary, TypeWithState.ForType(binary.
Type
), TypeWithAnnotations.Create(binary.
Type
));
4731
Debug.Assert(binary.
Type
.SpecialType == SpecialType.System_Boolean);
4738
var inferredResult = InferResultNullability(binary.OperatorKind, method, binary.
Type
, leftType, rightType);
10419
return TypeWithState.Create(node.
Type
, NullableFlowState.NotNull);
10497
BoundBinaryOperator binary => InferResultNullability(binary.OperatorKind, binary.Method, binary.
Type
, leftType, rightType),
Generated\BoundNodes.xml.Generated.cs (6)
1670
if (operatorKind != this.OperatorKind || data != this.Data || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.
Type
, TypeCompareKind.ConsiderEverything))
1753
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))
10641
TypeSymbol? type = this.VisitType(node.
Type
);
10656
TypeSymbol? type = this.VisitType(node.
Type
);
14760
new TreeDumperNode("type", node.
Type
, null),
14787
new TreeDumperNode("type", node.
Type
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
197
return VisitBinaryOperator(binOp.OperatorKind, binOp.Method, binOp.
Type
, binOp.Left, binOp.Right);
200
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)
72
var type = node.
Type
;
115
Debug.Assert(node.
Type
.SpecialType == SpecialType.System_String, "Non-string binary addition should have been handled by VisitConversion or VisitArguments");
117
return LowerPartsToString(data, parts, node.Syntax, node.
Type
);
150
loweredLeft = MakeBinaryOperator(original, original.Syntax, original.OperatorKind, loweredLeft, loweredRight, original.
Type
, original.Method, original.ConstrainedToType,
Lowering\MethodToClassRewriter.cs (2)
273
VisitType(node.
Type
));
316
VisitType(node.
Type
));
Lowering\SpillSequenceSpiller.cs (2)
925
var tmp = _F.SynthesizedLocal(node.
Type
, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax);
942
return UpdateExpression(builder, node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.
Type
));
Operations\CSharpOperationFactory.cs (1)
1447
if (boundBinaryOperator.
Type
.IsDynamic() &&