86 references to StrippedType
Microsoft.CodeAnalysis.CSharp (86)
Binder\Binder_Conversions.cs (1)
746
BoundExpression expr = bindObjectCreationExpression(node.Syntax, node.InitializerOpt, node.Binder, destination.
StrippedType
(), arguments, diagnostics);
Binder\Binder_Operators.cs (2)
1159
bool typeMatchesContainer = TypeSymbol.Equals(signature.ReturnType.
StrippedType
(), t, TypeCompareKind.ConsiderEverything2) ||
1161
SourceUserDefinedOperatorSymbol.IsSelfConstrainedTypeParameter((definition = signature.Method.OriginalDefinition).ReturnType.
StrippedType
(), definition.ContainingType));
Binder\Binder_Patterns.cs (7)
300
TypeSymbol narrowedType = inputType.
StrippedType
();
560
var strippedInputType = inputType.
StrippedType
();
942
return TypeWithAnnotations.Create(inputType.
StrippedType
(), NullableAnnotation.NotAnnotated);
1045
narrowedType: boundDeclType?.Type ?? inputType.
StrippedType
(), hasErrors);
1377
var strippedInputType = inputType.
StrippedType
();
1431
isExplicitNotNullTest: false, inputType: inputType, narrowedType: inputType.
StrippedType
(), hasErrors: hasErrors);
1521
symbol = BindPropertyPatternMember(receiver.Type.
StrippedType
(), name, ref hasErrors, diagnostics);
Binder\Binder_TupleOperators.cs (3)
332
Debug.Assert(targetType.
StrippedType
().IsTupleType);
362
if (type.
StrippedType
() is { IsTupleType: true } tupleType)
383
TypeSymbol tupleType = expr.Type.
StrippedType
();
Binder\DecisionDagBuilder.cs (3)
458
TypeSymbol inputType = input.Type.
StrippedType
(); // since a null check has already been done
523
var inputType = recursive.DeclaredType?.Type ?? input.Type.
StrippedType
();
614
input = MakeConvertToType(input, member.Syntax, member.Receiver.Type.
StrippedType
(), isExplicitTest: false, tests);
Binder\DecisionDagBuilder_ListPatterns.cs (1)
17
input.Type.
StrippedType
().Equals(list.NarrowedType, TypeCompareKind.ConsiderEverything) &&
Binder\ForEachLoopBinder.cs (1)
908
(originalCollectionExpr.Type?.IsNullableType() == true && originalCollectionExpr.Type.
StrippedType
().Equals(collectionExpr.Type, TypeCompareKind.AllIgnoreOptions)));
Binder\Semantics\Conversions\ConversionsBase.cs (10)
496
return Conversion.MakeNullableConversion(convKind, FastClassifyConversion(source.
StrippedType
(), target.
StrippedType
()));
916
var strippedSource = source.
StrippedType
();
917
var strippedDestination = destination.
StrippedType
();
2159
var s0 = source.
StrippedType
();
2160
var t0 = target.
StrippedType
();
2255
TypeSymbol unwrappedSource = source.
StrippedType
();
2451
TypeSymbol unwrappedSource = source.
StrippedType
();
2452
TypeSymbol unwrappedDestination = destination.
StrippedType
();
3905
return IsIntegerTypeSupportingPointerConversions(destination.
StrippedType
());
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
87
type = type.
StrippedType
();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
67
TypeSymbol leftOperatorSourceOpt = left.Type?.
StrippedType
();
68
TypeSymbol rightOperatorSourceOpt = right.Type?.
StrippedType
();
504
bool isExactSubtraction = TypeSymbol.Equals(right.Type?.
StrippedType
(), underlying, TypeCompareKind.ConsiderEverything2);
611
leftType = leftType.
StrippedType
();
617
rightType = rightType.
StrippedType
();
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
302
enumType = enumType.
StrippedType
();
379
TypeSymbol type0 = operand.Type.
StrippedType
();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
654
if (!binder.TryGetCollectionIterationType((ExpressionSyntax)argument.Syntax, targetType.
StrippedType
(), out TypeWithAnnotations targetElementType))
BoundTree\TupleBinaryOperatorInfo.cs (2)
111
Debug.Assert(leftConvertedTypeOpt is null || leftConvertedTypeOpt.
StrippedType
().IsTupleType);
112
Debug.Assert(rightConvertedTypeOpt is null || rightConvertedTypeOpt.
StrippedType
().IsTupleType);
Compilation\CSharpSemanticModel.cs (6)
3809
symbols = OneOrMany.Create<Symbol>(new SynthesizedIntrinsicOperatorSymbol(unaryOperator.Operand.Type.
StrippedType
(),
3811
unaryOperator.Type.
StrippedType
()));
3832
TypeSymbol opType = increment.Operand.Type.
StrippedType
();
3888
leftType = leftType.
StrippedType
();
3889
rightType = rightType.
StrippedType
();
3890
returnType = returnType.
StrippedType
();
FlowAnalysis\NullableWalker.cs (5)
3768
var strippedTargetCollectionType = targetCollectionType.Type.
StrippedType
();
5195
derivedType = derivedType.
StrippedType
();
5622
BoundNullCoalescingOperatorResultKind.LeftUnwrappedType => getLeftResultType(leftResultType!.
StrippedType
(), rightResultType!),
5624
BoundNullCoalescingOperatorResultKind.LeftUnwrappedRightType => getResultStateWithRightType(leftResultType!.
StrippedType
(), rightResultType!),
11261
method = (MethodSymbol)AsMemberOfType(operandType.Type!.
StrippedType
(), method);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (6)
510
var promotedType = PromotedType(enumOperand.Type.
StrippedType
().GetEnumUnderlyingType());
539
conversion.Type.
StrippedType
().IsEnumType())
603
if (e.
StrippedType
().TypeKind == TypeKind.Enum)
701
var strippedOperandType = operandType.
StrippedType
();
705
!TypeSymbol.Equals(strippedOperandType, ((node.ConversionKind == ConversionKind.ExplicitUserDefined) ? conversionInputType : conversionInputType.
StrippedType
()), TypeCompareKind.ConsiderEverything2);
1188
var promotedType = PromotedType(arg.Type.
StrippedType
().GetEnumUnderlyingType());
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
763
type.
StrippedType
().EnumUnderlyingTypeOrSelf().SpecialType;
1008
when convertedArgument.Type!.Equals(expression.Type.
StrippedType
(), TypeCompareKind.AllIgnoreOptions):
1024
type: conversion.Type.
StrippedType
(),
1104
TypeSymbol typeFrom = rewrittenOperandType.
StrippedType
();
1105
TypeSymbol typeTo = rewrittenType.
StrippedType
();
1516
rewrittenOperand = MakeConversionNode(rewrittenOperand, source.
StrippedType
(), @checked, markAsChecked: true);
1540
TypeSymbol t0 = target.
StrippedType
();
1541
TypeSymbol s0 = source.
StrippedType
();
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
112
Debug.Assert(transformedLHS.Type.GetNullableUnderlyingType().Equals(tmp.Type.
StrippedType
(), TypeCompareKind.AllIgnoreOptions));
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
90
expr.Type is { } exprType && exprType.IsNullableType() && exprType.
StrippedType
().Equals(o.Type, TypeCompareKind.AllIgnoreOptions):
371
value = new BoundDefaultExpression(expr.Syntax, expr.Type.
StrippedType
());
Operations\CSharpOperationFactory.cs (4)
1596
boundNullCoalescingOperator.Type.Equals(boundNullCoalescingOperator.LeftOperand.Type?.
StrippedType
(), TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes))
2555
ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.
StrippedType
()).GetPublicSymbol();
2582
boundITuplePattern.InputType.
StrippedType
().GetPublicSymbol(),
2928
=> member.Receiver?.Type.
StrippedType
().GetPublicSymbol() ?? matchedType;
Symbols\Source\ParameterHelpers.cs (1)
822
(defaultExpression.IsImplicitObjectCreation() ? convertedExpression.Type.
StrippedType
() : defaultExpression.Type), parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (11)
445
var source0 = source.
StrippedType
();
446
var target0 = target.
StrippedType
();
603
if (!MatchesContainingType(this.GetParameterType(0).
StrippedType
()))
623
if (!MatchesContainingType(this.GetParameterType(0).
StrippedType
()))
673
if (!MatchesContainingType(parameterType.
StrippedType
()))
721
if (!MatchesContainingType(this.GetParameterType(0).
StrippedType
()))
727
else if (this.GetParameterType(1).
StrippedType
().SpecialType != SpecialType.System_Int32)
740
if (!MatchesContainingType(this.GetParameterType(0).
StrippedType
()) &&
741
!MatchesContainingType(this.GetParameterType(1).
StrippedType
()))
752
if (!IsSelfConstrainedTypeParameter(this.GetParameterType(0).
StrippedType
()) &&
753
!IsSelfConstrainedTypeParameter(this.GetParameterType(1).
StrippedType
()))
Symbols\TypeSymbolExtensions.cs (1)
191
return type?.
StrippedType
().IsNativeIntegerType == true;
Symbols\TypeWithAnnotations.cs (2)
905
internal override TypeSymbol GetNullableUnderlyingTypeOrSelf(TypeSymbol typeSymbol) => typeSymbol.
StrippedType
();
1006
internal override TypeSymbol GetNullableUnderlyingTypeOrSelf(TypeSymbol typeSymbol) => typeSymbol.
StrippedType
();