40 references to Type
Microsoft.CodeAnalysis.CSharp (40)
CodeGen\Optimizer.cs (2)
995assignmentLocal.Type.IsPointerOrFunctionPointer() && right.Kind == BoundKind.Conversion && 2146return new BoundDup(node.Syntax, node.LocalSymbol.RefKind, node.Type);
FlowAnalysis\DefiniteAssignment.cs (1)
2310if (node.Type == (object)this.compilation.ImplicitlyTypedVariableUsedInForbiddenZoneType)
FlowAnalysis\NullableWalker.cs (5)
3201if (node.Type == (object)this.compilation.ImplicitlyTypedVariableUsedInForbiddenZoneType) 3203SetResultType(node, TypeWithState.ForType(node.Type)); 3211if (!node.Type.Equals(type.Type, TypeCompareKind.ConsiderEverything | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes | TypeCompareKind.IgnoreDynamicAndTupleNames)) 3216Debug.Assert(node.Type.IsErrorType() || type.Type.IsErrorType()); 3217type = TypeWithAnnotations.Create(node.Type, type.NullableAnnotation);
Generated\BoundNodes.xml.Generated.cs (4)
4548if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11598TypeSymbol? type = this.VisitType(node.Type); 13738updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, node.Type); 16167new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_Await.cs (1)
55type: tempAccess.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1855MethodSymbol getValueOrDefaultX = UnsafeGetNullableMethod(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 1856MethodSymbol getValueOrDefaultY = UnsafeGetNullableMethod(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
803!receiverTemp.Type.IsValueType : 995var receiverType = receiverTemp.Type; 1730type: boundTemp.Type);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
901_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 903indexTemp.Type)); 1109sideEffects.Add(new BoundAssignmentOperator(rewrittenSpreadOperand.Syntax, indexTemp, _factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, spreadLength), isRef: false, indexTemp.Type)); 1203var spanGetItem = ((MethodSymbol)_factory.WellKnownMember(WellKnownMember.System_Span_T__get_Item)).AsMember((NamedTypeSymbol)spanTemp.Type); 1262_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 1264indexTemp.Type));
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
333!receiverTemp.Type.IsValueType :
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1171if (!TryGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out getValueOrDefault)) 1437MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
775TypeSymbol inlineArrayType = boundArrayVar.Type; 786_ = boundArrayVar.Type.HasInlineArrayAttribute(out int length);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
125Debug.Assert(transformedLHS.Type.GetNullableUnderlyingType().Equals(tmp.Type.StrippedType(), TypeCompareKind.AllIgnoreOptions)); 145var ternary = _factory.Conditional(lhsReadHasValue, tmp, alternative, tmp.Type);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
205MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
359bool isNullableValueType = local.Type.IsNullableType(); 363MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 385else if (local.Type.IsValueType)
Lowering\SpillSequenceSpiller.cs (3)
219return node.Update(longLived, node.ConstantValueOpt, node.Type); 565&& valueTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions) 567&& referenceTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions)
Lowering\SyntheticBoundNodeFactory.cs (1)
1613return new BoundCatchBlock(Syntax, ImmutableArray.Create(local), source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false);