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