94 references to OriginalDefinition
Microsoft.CodeAnalysis.CSharp (94)
Binder\Binder.ValueChecks.cs (2)
4545Debug.Assert(parameter.Type.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions)); 5507RefKind parameterRefKind = resultType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions) ? RefKind.In : RefKind.Ref;
Binder\Binder_Conversions.cs (18)
453if (destination.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions)) 468Debug.Assert(destination.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions)); 497TryFindImplicitOperatorFromArray(destination.OriginalDefinition), 498destination.OriginalDefinition, 509TryFindImplicitOperatorFromSpan(source.Type.OriginalDefinition, destination.OriginalDefinition), 510source.Type.OriginalDefinition, 526? destination.OriginalDefinition 527: source.Type.OriginalDefinition; 529MethodSymbol? castUpMethod = TryFindCastUpMethod(sourceForCastUp, destination.OriginalDefinition); 532destination.OriginalDefinition, 591readonlySpanType.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.ConsiderEverything)); 640arg.source.Equals(parameter.Type.OriginalDefinition, TypeCompareKind.ConsiderEverything) && 642arg.destination.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.ConsiderEverything) && 870if (targetType.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything)) 872diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, targetType.OriginalDefinition); 1021binder.CollectionType.OriginalDefinition.Equals(targetType.OriginalDefinition, TypeCompareKind.AllIgnoreOptions)) 1877|| !readOnlySpanType.Equals(parameterType.OriginalDefinition, TypeCompareKind.AllIgnoreOptions))
Binder\Binder_Lookup.cs (3)
836if (basesBeingResolved != null && basesBeingResolved.ContainsReference(type.OriginalDefinition)) 855currentType.OriginalDefinition.AddUseSiteInfo(ref useSiteInfo); 994if (TypeSymbol.Equals(list.Head, type.OriginalDefinition, TypeCompareKind.ConsiderEverything2))
Binder\Binder_QueryErrors.cs (2)
88var originalType = instanceType.OriginalDefinition; 126var originalType = instanceType.OriginalDefinition;
Binder\Binder_Symbols.cs (1)
554ReportUseSite(constructedType.Type.OriginalDefinition, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (4)
570IsIEnumerableT(builder.CollectionType.OriginalDefinition, IsAsync, Compilation) || 1120Debug.Assert(enumeratorType.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerator_T))); 1723switch (((TypeSymbol)type.OriginalDefinition).SpecialType) 1735return type.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T));
Binder\InMethodBinder.cs (2)
150TypeSymbol originalDefinition = returnType.OriginalDefinition; 181TypeSymbol originalDefinition = returnType.OriginalDefinition;
Binder\Semantics\AccessCheck.cs (2)
460var originalThroughTypeOpt = (object)throughTypeOpt == null ? null : throughTypeOpt.OriginalDefinition as TypeSymbol; 592current = (TypeSymbol)next.OriginalDefinition;
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1148(destination.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions) || 1149destination.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions)) && 1150HasIdentityConversionInternal(((NamedTypeSymbol)destination.OriginalDefinition).Construct(ImmutableArray.Create(elementType)), destination)) 3664if (!TypeSymbol.Equals(source.OriginalDefinition, destination.OriginalDefinition, TypeCompareKind.ConsiderEverything2)) 3783var specialDefinition = ((TypeSymbol)source.OriginalDefinition).SpecialType;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2591TypeSymbol.Equals(constructedSource.OriginalDefinition, target.OriginalDefinition, TypeCompareKind.ConsiderEverything2))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
3269if (y.OriginalDefinition.IsGenericTaskType(Compilation)) 3482bool type1IsGenericTask = type1.OriginalDefinition.IsGenericTaskType(Compilation); 3483bool type2IsGenericTask = type2.OriginalDefinition.IsGenericTaskType(Compilation);
BoundTree\BoundExpression.cs (1)
279ErrorTypeSymbol? errorType = this.Type.OriginalDefinition as ErrorTypeSymbol;
Compilation\CSharpSemanticModel.cs (1)
2319var originalErrorSymbol = (object)type != null ? type.OriginalDefinition as ErrorTypeSymbol : null;
Errors\LazyUseSiteDiagnosticsInfoForNullableType.cs (1)
35return _possiblyNullableTypeSymbol.Type.OriginalDefinition.GetUseSiteInfo().DiagnosticInfo;
FlowAnalysis\DefiniteAssignment.cs (1)
2808node.Type.OriginalDefinition.Equals(compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions))
FlowAnalysis\EmptyStructTypeCache.cs (1)
126var nts = type.OriginalDefinition as NamedTypeSymbol;
FlowAnalysis\NullableWalker.cs (2)
8509Debug.Assert(containingType.OriginalDefinition.SpecialType == SpecialType.System_Nullable_T); 10931else if (ForEachLoopBinder.IsIEnumerableT(collectionExpression.Type.OriginalDefinition, isAsync, compilation))
Lowering\ClosureConversion\ClosureConversion.cs (2)
610if (TypeSymbol.Equals(potentialParameter.Type.OriginalDefinition, frameClass, TypeCompareKind.ConsiderEverything2)) 897var frameType = (NamedTypeSymbol)loweredSymbol.Parameters[i].Type.OriginalDefinition;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
103var lambdaFrame = local.Type.OriginalDefinition as SynthesizedClosureEnvironment;
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
68switch (method.ReturnType.OriginalDefinition.SpecialType) 81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
553!loweredInput.Type.OriginalDefinition.Equals(_factory.Compilation.GetWellKnownType(WellKnownType.System_ValueTuple_TRest)) &&
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (5)
193Debug.Assert(targetEnumerableType.OriginalDefinition == (object)_compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)); 317Debug.Assert(list.Type.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.AllIgnoreOptions)); 665var spreadTypeOriginalDefinition = spreadExpression.Type!.OriginalDefinition; 690var spanType = CallAsSpanMethod(spreadExpression, asSpanMethod).Type!.OriginalDefinition; 970if (spreadOperandAsSpan.Type!.OriginalDefinition.Equals(this._compilation.GetWellKnownType(wellKnownSpanType))
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (5)
651if (Binder.TryFindImplicitOperatorFromSpan(sourceType.OriginalDefinition, destinationType.OriginalDefinition) is not { } implicitOperatorDefinition) 663if (Binder.TryFindCastUpMethod(implicitOperator.ReturnType.OriginalDefinition, destinationType.OriginalDefinition) is not { } castUpMethodDefinition) 684if (Binder.TryFindCastUpMethod(sourceType.OriginalDefinition, destinationType.OriginalDefinition) is not { } methodDefinition) 903userDefinedConversionRewrittenType = ((NamedTypeSymbol)rewrittenOperand.Type.OriginalDefinition).Construct(userDefinedConversionRewrittenType); 1118rewrittenOperandType = rewrittenOperandType.IsNullableType() ? ((NamedTypeSymbol)rewrittenOperandType.OriginalDefinition).Construct(typeFromUnderlying) : typeFromUnderlying;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
73var origDefinition = nodeExpressionType.OriginalDefinition; 393Debug.Assert(enumeratorType.OriginalDefinition.SpecialType != SpecialType.System_Nullable_T);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
50else if (TypeSymbol.Equals(type.OriginalDefinition, _compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.ConsiderEverything2))
Symbols\Compilation_WellKnownMembers.cs (3)
213return TypeSymbol.Equals(type.OriginalDefinition, GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.ConsiderEverything2); 1226if ((int)type.OriginalDefinition.ExtendedSpecialType == typeId) 1233return type.Equals(type.OriginalDefinition, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes);
Symbols\ExtendedErrorTypeSymbol.cs (2)
234ExtendedErrorTypeSymbol? oldError = oldSymbol.OriginalDefinition as ExtendedErrorTypeSymbol; 262ExtendedErrorTypeSymbol? oldError = oldSymbol.OriginalDefinition as ExtendedErrorTypeSymbol;
Symbols\Metadata\PE\MetadataDecoder.cs (2)
234AssemblySymbol containingAssembly = symbol.OriginalDefinition.ContainingAssembly; 564var memberRefDecoder = new MemberRefMetadataDecoder(moduleSymbol, targetTypeSymbol.OriginalDefinition);
Symbols\Metadata\PE\PEEventSymbol.cs (1)
169if (TypeSymbol.Equals(eventRegistrationTokenTable_T, candidateAssociatedFieldType.OriginalDefinition, TypeCompareKind.ConsiderEverything2) &&
Symbols\NamedTypeSymbol.cs (3)
78typeArgument.Type.OriginalDefinition.AddUseSiteInfo(ref useSiteInfo); 87result.Type.OriginalDefinition.AddUseSiteInfo(ref useSiteInfo); 1662while (Equals(typeToCheck.OriginalDefinition, this.OriginalDefinition, TypeCompareKind.ConsiderEverything) && !typeToCheck.IsDefinition);
Symbols\PublicModel\TypeSymbol.cs (1)
82return UnderlyingTypeSymbol.OriginalDefinition.GetPublicSymbol();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
663if ((object)symbol.OriginalDefinition.ContainingModule == (object)_retargetingModule.UnderlyingModule &&
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1230method.ReturnType.OriginalDefinition.Equals(this.DeclaringCompilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T)))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1578if (ReturnType.OriginalDefinition.Equals(iAsyncEnumerableType) &&
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1873TypeSymbol returnTypeOriginalDefinition = returnType.OriginalDefinition;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
773Debug.Assert(_field.Type.OriginalDefinition.Equals(symbol.ContainingType, TypeCompareKind.AllIgnoreOptions));
Symbols\TypeParameterSymbol.cs (2)
99((TypeSymbol)constraint.Type.OriginalDefinition).AddUseSiteInfo(ref useSiteInfo); 324((TypeSymbol)result.OriginalDefinition).AddUseSiteInfo(ref useSiteInfo);
Symbols\TypeSymbol.cs (1)
895implementingTypeIsFromSomeCompilation = currType.OriginalDefinition.ContainingModule is not PEModuleSymbol;
Symbols\TypeSymbolExtensions.cs (4)
141return type.OriginalDefinition.SpecialType == SpecialType.System_Nullable_T; 478if (_type.OriginalDefinition is NamedTypeSymbol type) 1619typeArguments[i].Type.OriginalDefinition, 2168type = type.OriginalDefinition;