29 references to Type
Microsoft.CodeAnalysis.CSharp (27)
CodeGen\Optimizer.cs (2)
995assignmentLocal.Type.IsPointerOrFunctionPointer() && right.Kind == BoundKind.Conversion && 2067return new BoundDup(node.Syntax, node.LocalSymbol.RefKind, node.Type);
FlowAnalysis\NullableWalker.cs (4)
2945SetResultType(node, TypeWithState.ForType(node.Type)); 2952if (!node.Type.Equals(type.Type, TypeCompareKind.ConsiderEverything | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes | TypeCompareKind.IgnoreDynamicAndTupleNames)) 2957Debug.Assert(node.Type.IsErrorType() || type.Type.IsErrorType()); 2958type = TypeWithAnnotations.Create(node.Type, type.NullableAnnotation);
Generated\BoundNodes.xml.Generated.cs (4)
4431if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11078TypeSymbol? type = this.VisitType(node.Type); 13089updatedNode = node.Update(localSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, node.Type); 15432new TreeDumperNode("type", node.Type, null),
Lowering\LocalRewriter\LocalRewriter_Await.cs (1)
54type: tempAccess.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1756MethodSymbol getValueOrDefaultX = UnsafeGetNullableMethod(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 1757MethodSymbol getValueOrDefaultY = UnsafeGetNullableMethod(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
692var receiverType = receiverTemp.Type; 1519type: boundTemp.Type);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1027if (!TryGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out getValueOrDefault)) 1283MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
112Debug.Assert(transformedLHS.Type.GetNullableUnderlyingType().Equals(tmp.Type.StrippedType(), TypeCompareKind.AllIgnoreOptions)); 132var ternary = _factory.Conditional(lhsReadHasValue, tmp, alternative, tmp.Type);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
199MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
358bool isNullableValueType = local.Type.IsNullableType(); 362MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 384else if (local.Type.IsValueType)
Lowering\SpillSequenceSpiller.cs (3)
220return node.Update(longLived, node.ConstantValueOpt, node.Type); 494&& valueTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions) 495&& referenceTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions)
Lowering\SyntheticBoundNodeFactory.cs (1)
1471return new BoundCatchBlock(Syntax, ImmutableArray.Create(local), source, source.Type, exceptionFilterPrologueOpt: null, exceptionFilterOpt: null, body: block, isSynthesizedAsyncCatchAll: false);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Rewriters\CapturedVariableRewriter.cs (1)
63Debug.Assert(TypeSymbol.Equals(node.Type, result.Type, TypeCompareKind.ConsiderEverything2));
Rewriters\PlaceholderLocalRewriter.cs (1)
35Debug.Assert(TypeSymbol.Equals(result.Type, node.Type, TypeCompareKind.ConsiderEverything2));