164 references to IsDefinition
Microsoft.CodeAnalysis.CSharp (164)
Binder\Binder_Conversions.cs (8)
577Debug.Assert(type.IsDefinition); 587Debug.Assert(spanType.IsDefinition && readonlySpanType.IsDefinition); 611Debug.Assert(!source.IsDefinition && !destination.IsDefinition); 627Debug.Assert(source.IsDefinition && destination.IsDefinition); 655Debug.Assert(!readOnlySpanType.IsDefinition);
Binder\Binder_Crefs.cs (1)
610if (containing.Arity > 0 && containing.IsDefinition)
Binder\Binder_Statements.cs (1)
1780if (!propertySymbol.IsDefinition && propertySymbol.ContainingType.Equals(propertySymbol.ContainingType.OriginalDefinition, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes))
Binder\Binder_Symbols.cs (1)
1730Debug.Assert(symbol.IsDefinition);
Binder\Semantics\AccessCheck.cs (9)
144Debug.Assert(within.IsDefinition); 231if (!type.IsDefinition) 463Debug.Assert(current.IsDefinition); 519Debug.Assert(originalContainingType.IsDefinition); 526Debug.Assert(current.IsDefinition); 550Debug.Assert(type.IsDefinition); 551Debug.Assert(baseType.IsDefinition); 569Debug.Assert(current.IsDefinition); 612Debug.Assert(currentBase.IsDefinition);
CodeGen\EmitExpression.cs (2)
3529Debug.Assert(node.Method.IsDefinition); 3575Debug.Assert(field.IsDefinition);
Compilation\CSharpCompilation.cs (2)
528if (methodSymbol?.DeclaringCompilation != this || !methodSymbol.IsDefinition) 4691Debug.Assert(symbol.IsDefinition);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
175Debug.Assert(symbol.IsDefinition); 318Debug.Assert(sourceType.IsDefinition); 595Debug.Assert(method.IsDefinition); 596Debug.Assert(other.IsDefinition); 609Debug.Assert(method.IsDefinition); 634Debug.Assert(type.IsDefinition); 892Debug.Assert(type.IsDefinition);
Emitter\Model\FieldSymbolAdapter.cs (5)
67if (AdaptedFieldSymbol.IsDefinition && 82if (!AdaptedFieldSymbol.IsDefinition) 100needDeclaration: AdaptedFieldSymbol.IsDefinition); 107if (!AdaptedFieldSymbol.IsDefinition) 293Debug.Assert(!AdaptedFieldSymbol.IsDefinition);
Emitter\Model\GenericTypeInstanceReference.cs (2)
28Debug.Assert(underlyingNamedType.IsDefinition); 52System.Diagnostics.Debug.Assert(UnderlyingNamedType.OriginalDefinition.IsDefinition);
Emitter\Model\MethodSymbolAdapter.cs (8)
41if (!AdaptedMethodSymbol.IsDefinition && 57if (!AdaptedMethodSymbol.IsDefinition && 90needDeclaration: AdaptedMethodSymbol.IsDefinition); 97if (!AdaptedMethodSymbol.IsDefinition) 164if (AdaptedMethodSymbol.IsDefinition && // can't be generic instantiation 195if (AdaptedMethodSymbol.IsDefinition && AdaptedMethodSymbol.ContainingModule == moduleBeingBuilt.SourceModule) 207Debug.Assert(AdaptedMethodSymbol.Parameters.All(p => p.IsDefinition)); 339Debug.Assert(@param.IsDefinition);
Emitter\Model\NamedTypeSymbolAdapter.cs (9)
65if (AdaptedNamedTypeSymbol.IsDefinition) 99if (!AdaptedNamedTypeSymbol.IsDefinition && 120if (AdaptedNamedTypeSymbol.IsDefinition && 137AdaptedNamedTypeSymbol.IsDefinition && 171AdaptedNamedTypeSymbol.IsDefinition && 186if (!AdaptedNamedTypeSymbol.IsDefinition && 209if (AdaptedNamedTypeSymbol.IsDefinition && // can't be generic instantiation 840needDeclaration: AdaptedNamedTypeSymbol.IsDefinition); 960Debug.Assert(this.IsDefinition);
Emitter\Model\ParameterSymbolAdapter.cs (1)
195if (AdaptedParameterSymbol.IsDefinition &&
Emitter\Model\PEModuleBuilder.cs (10)
591Debug.Assert(symbol.IsDefinition); 678Debug.Assert(type.IsDefinition); 997if (!namedTypeSymbol.IsDefinition) 1067Debug.Assert(namedTypeSymbol.IsDefinition); 1129if (!param.IsDefinition) 1178if (!fieldSymbol.IsDefinition) 1261if (!methodSymbol.IsDefinition) 1328if (methodSymbol.IsDefinition) 1349Debug.Assert(methodSymbol.IsDefinition); 1391if (param.IsDefinition)
Emitter\Model\PropertySymbolAdapter.cs (1)
145Debug.Assert(AdaptedPropertySymbol.IsDefinition);
Emitter\Model\SpecializedFieldReference.cs (1)
48Debug.Assert(_underlyingField.OriginalDefinition.IsDefinition);
Emitter\Model\SpecializedGenericMethodInstanceReference.cs (1)
27Debug.Assert(PEModuleBuilder.IsGenericType(underlyingMethod.ContainingType) && underlyingMethod.ContainingType.IsDefinition);
Emitter\Model\SpecializedGenericNestedTypeInstanceReference.cs (2)
27Debug.Assert(underlyingNamedType.IsDefinition); 51System.Diagnostics.Debug.Assert(UnderlyingNamedType.OriginalDefinition.IsDefinition);
Emitter\Model\SpecializedNestedTypeReference.cs (1)
28Debug.Assert(UnderlyingNamedType.OriginalDefinition.IsDefinition);
Emitter\Model\SymbolAdapter.cs (2)
64Debug.Assert(this.IsDefinition); 81return this.IsDefinition || !this.Equals(this.OriginalDefinition, SymbolEqualityComparer.ConsiderEverything.CompareKind);
Emitter\Model\TypeParameterSymbolAdapter.cs (5)
78Debug.Assert(AdaptedTypeParameterSymbol.IsDefinition); 113Debug.Assert(AdaptedTypeParameterSymbol.IsDefinition); 200Debug.Assert(AdaptedTypeParameterSymbol.IsDefinition); 221Debug.Assert(AdaptedTypeParameterSymbol.IsDefinition); 230Debug.Assert(AdaptedTypeParameterSymbol.IsDefinition);
Emitter\NoPia\EmbeddedParameter.cs (1)
28Debug.Assert(underlyingParameter.AdaptedParameterSymbol.IsDefinition);
Emitter\NoPia\EmbeddedType.cs (1)
33Debug.Assert(underlyingNamedType.AdaptedNamedTypeSymbol.IsDefinition);
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
24Debug.Assert(underlyingTypeParameter.AdaptedTypeParameterSymbol.IsDefinition);
Emitter\NoPia\EmbeddedTypesManager.cs (7)
354Debug.Assert(namedType.IsDefinition); 371Debug.Assert(namedType.IsDefinition); 437Debug.Assert(field.AdaptedSymbol.IsDefinition); 473Debug.Assert(method.AdaptedSymbol.IsDefinition); 534Debug.Assert(property.AdaptedPropertySymbol.IsDefinition); 569Debug.Assert(@event.AdaptedSymbol.IsDefinition); 606Debug.Assert(member.AdaptedSymbol.IsDefinition);
FlowAnalysis\NullableWalker.cs (1)
8204Debug.Assert(symbol.ContainingType.IsDefinition);
Lowering\ClosureConversion\ClosureConversion.cs (1)
594Debug.Assert(frameClass.IsDefinition);
Lowering\LocalRewriter\DelegateCacheContainer.cs (2)
24Debug.Assert(containingType.IsDefinition); 33Debug.Assert(ownerMethod.IsDefinition);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
151Debug.Assert(interceptor.IsDefinition);
Symbols\BaseTypeAnalysis.cs (3)
22Debug.Assert(on.IsDefinition); 67Debug.Assert(on.IsDefinition); 101if (!type.IsDefinition)
Symbols\Compilation_WellKnownMembers.cs (1)
1228if (type.IsDefinition)
Symbols\ErrorTypeSymbol.cs (2)
473Debug.Assert(this.IsDefinition); 475return newOwner.IsDefinition ? this : new SubstitutedNestedErrorTypeSymbol(newOwner, this);
Symbols\EventSymbol.cs (6)
139if (IsDefinition) 262Debug.Assert(this.IsDefinition); 264Debug.Assert(newOwner.IsDefinition || newOwner is SubstitutedNamedTypeSymbol); 265return newOwner.IsDefinition ? this : new SubstitutedEventSymbol((newOwner as SubstitutedNamedTypeSymbol)!, this); 274if (this.IsDefinition) 284Debug.Assert(this.IsDefinition);
Symbols\FieldSymbol.cs (5)
329Debug.Assert(this.IsDefinition); 331return newOwner.IsDefinition ? this : new SubstitutedFieldSymbol(newOwner as SubstitutedNamedTypeSymbol, this); 343if (this.IsDefinition) 353Debug.Assert(IsDefinition); 479if (!ContainingType.IsDefinition)
Symbols\MemberSymbolExtensions.cs (3)
550Debug.Assert(member.IsDefinition); 559Debug.Assert(member.IsDefinition); 568Debug.Assert(member.IsDefinition);
Symbols\Metadata\PE\MetadataDecoder.cs (2)
490Debug.Assert(typeSymbol.IsDefinition); 568if (definition is not null && !targetTypeSymbol.IsDefinition)
Symbols\Metadata\PE\NullableTypeDecoder.cs (1)
28Debug.Assert(accessSymbol.IsDefinition);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
794Debug.Assert(symbol.IsDefinition);
Symbols\MethodSymbol.cs (5)
493if (IsDefinition) 889Debug.Assert(this.IsDefinition); 891return newOwner.IsDefinition ? this : new SubstitutedMethodSymbol(newOwner, this); 941if (this.IsDefinition) 953Debug.Assert(this.IsDefinition);
Symbols\NamedTypeSymbol.cs (6)
1354Debug.Assert(this.IsDefinition); 1356return newOwner.IsDefinition ? this : new SubstitutedNestedTypeSymbol((SubstitutedNamedTypeSymbol)newOwner, this); 1365if (this.IsDefinition) 1395while (currentType?.IsDefinition == false); 1651else if (arity == ValueTupleRestPosition && !IsDefinition) 1662while (Equals(typeToCheck.OriginalDefinition, this.OriginalDefinition, TypeCompareKind.ConsiderEverything) && !typeToCheck.IsDefinition);
Symbols\OverriddenOrHiddenMembersHelpers.cs (5)
662if (currTypeHasExactMatch && memberIsFromSomeCompilation && member.IsDefinition && TypeOrReturnTypeHasCustomModifiers(currTypeBestMatch)) 717(!representativeMember.ContainingType.IsDefinition || representativeMember.IsIndexer()); 792Debug.Assert(representativeMember.Kind == SymbolKind.Property || !representativeMember.ContainingType.IsDefinition); 856Debug.Assert(representativeMember.Kind == SymbolKind.Property || !representativeMember.ContainingType.IsDefinition); 971csharpOverriddenMethod.IsDefinition || csharpOverriddenMethod.OriginalDefinition.MethodHasRuntimeCollision();
Symbols\OverriddenOrHiddenMembersResult.cs (1)
56Debug.Assert(!substitutedOverridingMember.IsDefinition);
Symbols\PropertySymbol.cs (5)
233if (IsDefinition) 381Debug.Assert(this.IsDefinition); 383return newOwner.IsDefinition ? this : new SubstitutedPropertySymbol(newOwner as SubstitutedNamedTypeSymbol, this); 390if (this.IsDefinition) 400Debug.Assert(this.IsDefinition);
Symbols\PublicModel\MethodSymbol.cs (1)
301bool IMethodSymbol.IsPartialDefinition => _underlying.IsDefinition && _underlying.IsPartialDefinition();
Symbols\PublicModel\Symbol.cs (1)
211bool ISymbol.IsDefinition => UnderlyingSymbol.IsDefinition;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
207Debug.Assert(type.IsDefinition); 899if (!containingType.IsDefinition) 901Debug.Assert(!retargetedType.IsDefinition); 913Debug.Assert(retargetedType.IsDefinition);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
386bool explicitInterfaceTypeIsDefinition = explicitInterfaceType.IsDefinition; //no runtime ref/out ambiguities if this is true
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
703Debug.Assert(containingType.IsDefinition);
Symbols\SubstitutedEventSymbol.cs (1)
20Debug.Assert(originalDefinition.IsDefinition);
Symbols\SubstitutedMethodSymbol.cs (1)
49Debug.Assert(originalDefinition.IsDefinition);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
55Debug.Assert(originalDefinition.IsDefinition);
Symbols\SubstitutedParameterSymbol.cs (1)
30Debug.Assert(originalParameter.IsDefinition);
Symbols\Symbol.cs (1)
194if (!this.IsDefinition)
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
36Debug.Assert(implementingType.IsDefinition);
Symbols\Tuples\TupleFieldSymbol.cs (1)
52Debug.Assert(!container.IsDefinition);
Symbols\Tuples\TupleTypeSymbol.cs (3)
180if (this.IsDefinition) 519Debug.Assert(type.IsDefinition); 653if (IsDefinition)
Symbols\TypeSymbol.cs (2)
863bool checkPendingExplicitImplementations = ((object)currType != implementingType || !currType.IsDefinition); 1722if (!implicitImpl.ContainingType.IsDefinition)
Symbols\TypeSymbolExtensions.cs (2)
1628while (type is object && !type.IsDefinition); 1967if (!type.IsDefinition)
Utilities\TypeSymbolExtensions.cs (2)
48bool isDefinition = type.IsDefinition; 131bool isDefinition = type.IsDefinition;