26 overrides of ContainingType
Microsoft.CodeAnalysis.VisualBasic (26)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
71Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (1)
137Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEEventSymbol.vb (1)
123Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
102Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
309Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
149Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\NamedTypeSymbol.vb (1)
111Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\NamespaceSymbol.vb (1)
106Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\ReducedExtensionMethodSymbol.vb (1)
347Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SignatureOnlyPropertySymbol.vb (1)
69Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceEventSymbol.vb (1)
428Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceFieldSymbol.vb (1)
120Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceMethodSymbol.vb (1)
603Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1123Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol 1734Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourcePropertySymbol.vb (1)
435Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SynthesizedFieldSymbol.vb (1)
141Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
83Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SubstitutedEventSymbol.vb (1)
97Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SubstitutedFieldSymbol.vb (1)
38Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SubstitutedPropertySymbol.vb (1)
87Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
73Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
101Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
222Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (1)
50Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
94Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
369 references to ContainingType
Microsoft.CodeAnalysis.VisualBasic (369)
Analysis\FlowAnalysis\DataFlowPass.vb (3)
532Dim containingType As TypeSymbol = DirectCast(symbol.ContainingType, TupleTypeSymbol).UnderlyingNamedType 539While Not TypeSymbol.Equals(containingType, symbol.ContainingType, TypeCompareKind.ConsiderEverything) 844If field.ContainingType.IsGenericType Then
Analysis\FlowAnalysis\ReadWriteWalker.vb (1)
128If fieldAccess.FieldSymbol.ContainingType.IsReferenceType Then Return
Analysis\InitializerRewriter.vb (4)
38Dim containingType = constructorMethod.ContainingType 121If TypeSymbol.Equals(addHandlerMethod.ContainingType, containingType, TypeCompareKind.ConsiderEverything) Then 153New BoundMeReference(constructorMethod.Syntax, compilationState.InitializeComponentOpt.ContainingType), 275Return TypeSymbol.Equals(methodSymbol.ContainingType, container, TypeCompareKind.ConsiderEverything)
Binding\Binder_Attributes.vb (2)
339Dim container = param.Type.ContainingType 350CheckRequiredMembersInObjectInitializer(methodSym, methodSym.ContainingType, boundNamedArguments, node.Name, diagnostics)
Binding\Binder_Conversions.vb (3)
900If oneVariantDifference.TypeParameter.ContainingType.IsDelegateType Then 946If oneInvariantDifference.ContainingType.IsDelegateType Then 1357ElseIf unboundLambda.IsInferredDelegateForThisLambda(delegateInvoke.ContainingType) Then
Binding\Binder_Delegates.vb (8)
299fromMethod.ContainingType.IsNullableType AndAlso 312fromMethod.ContainingType, 587toMethod.ContainingType, 607delegateSymbol:=toMethod.ContainingType, 700toMethod.ContainingType, 738targetMethodSymbol.ContainingType) 762targetMethodSymbol.ContainingType) 945ElseIf TypeOf sym.ContainingType Is SynthesizedEventDelegateSymbol Then
Binding\Binder_Expressions.vb (1)
2586Dim container = member.ContainingType
Binding\Binder_Initializers.vb (1)
110If Not initializer.FieldsOrProperties.IsDefault AndAlso initializer.FieldsOrProperties.First.ContainingType.IsEnumType Then
Binding\Binder_Invocation.vb (19)
1092If Compilation.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_Strings) IsNot method.ContainingType Then 1463singleSymbol, singleSymbol.ContainingType) 1475singleSymbol, singleSymbol.ContainingType) 1774Dim container As NamedTypeSymbol = bestSymbols(0).ContainingType 1777If Not TypeSymbol.Equals(bestSymbols(i).ContainingType, container, TypeCompareKind.ConsiderEverything) Then 1799diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate2, bestSymbol, bestSymbol.ContainingType)) 1807diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, bestSymbol, bestSymbol.ContainingType, notMostSpecificMessage)) 2067candidateSymbol, candidateSymbol.ContainingType) 2136candidateSymbol, candidateSymbol.ContainingType) 2163candidateSymbol, candidateSymbol.ContainingType) 2184candidateSymbol, candidateSymbol.ContainingType) 2218candidateSymbol, candidateSymbol.ContainingType) 2239ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous3, ERRID.ERR_TypeInferenceFailureAmbiguous3), candidateSymbol, candidateSymbol.ContainingType) 2247ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest3, ERRID.ERR_TypeInferenceFailureNoBest3), candidateSymbol, candidateSymbol.ContainingType) 2260ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit3, ERRID.ERR_TypeInferenceFailure3), candidateSymbol, candidateSymbol.ContainingType) 2346candidateSymbol, candidateSymbol.ContainingType) 2357ERRID.ERR_TooManyArgs2, candidateSymbol, candidateSymbol.ContainingType) 2427candidateSymbol, candidateSymbol.ContainingType) 3270methodSymbol.ContainingType)
Binding\Binder_Lookup.vb (7)
558Dim deferredFormattedList As New FormattedSymbolList(syms.Select(Function(sym) sym.ContainingType)) 1223lookupResult.MergeOverloadedOrPrioritizedExtensionMethods(binder.CheckViability(reduced, arity, options, reduced.ContainingType, useSiteInfo)) 1278singleResult = binder.CheckViability(reduced, arity, options, reduced.ContainingType, useSiteInfo) 1770Debug.Assert(TypeSymbol.Equals(newSymbolContainer, newSymbol.ContainingType, TypeCompareKind.ConsiderEverything)) 1805If otherKnown IsNot Nothing AndAlso TypeSymbol.Equals(otherKnown.ContainingType, knownSymbolContainer, TypeCompareKind.ConsiderEverything) Then 1965(TypeSymbol.Equals(containingMethod.ContainingType, container, TypeCompareKind.ConsiderEverything) OrElse TypeSymbol.Equals(containingMethod.ContainingType.BaseTypeNoUseSiteDiagnostics, container, TypeCompareKind.ConsiderEverything)) Then
Binding\Binder_ObjectInitializer.vb (2)
501CheckRequiredMembersInObjectInitializer(constructorSymbol, constructorSymbol.ContainingType, If(objectInitializerExpressionOpt?.Initializers, ImmutableArray(Of BoundExpression).Empty), typeNode, diagnostics) 528Debug.Assert((constructor IsNot Nothing AndAlso ReferenceEquals(constructor.ContainingType, containingType)) OrElse containingType.IsStructureType())
Binding\Binder_Operators.vb (1)
691bitwiseCandidate.UnderlyingSymbol.ContainingType,
Binding\Binder_Statements.vb (3)
350If InitializerRewriter.HasExplicitMeConstructorCall(body, ContainingMember.ContainingType, hasMyBaseConstructorCall) OrElse hasMyBaseConstructorCall Then 432Debug.Assert(Not diagnostics.AccumulatesDiagnostics OrElse diagnostics.HasAnyResolvedErrors OrElse If(methodSymbol.ContainingType.BaseTypeNoUseSiteDiagnostics?.IsErrorType(), False)) 2554If Not TypeSymbol.Equals(fireMethod.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) Then
Binding\Binder.vb (2)
581member.MergeUseSiteInfo(useSiteInfo, member.ContainingType.GetUseSiteInfo()) 957If(symbol.ContainingType?.IsInterface, False) Then
Binding\BinderBuilder.vb (3)
277containingType = target.ContainingSymbol.ContainingType 280containingType = target.ContainingType 321Dim containingType = containingSymbol.ContainingType()
Binding\BindingDiagnosticBag.vb (1)
117AddDependencies(If(TryCast(symbol, TypeSymbol), symbol.ContainingType))
Binding\DocumentationCommentBinder.vb (2)
46ElseIf commentedSymbol.ContainingType IsNot Nothing Then 47Debug.Assert(TypeSymbol.Equals(DirectCast(binderContainingMember, TypeSymbol), commentedSymbol.ContainingType, TypeCompareKind.ConsiderEverything))
Binding\DocumentationCommentCrefBinder.vb (1)
694containingSymbol = containingSymbol.ContainingType
Binding\LookupResult.vb (4)
627Debug.Assert(Not Me.HasSymbol OrElse other.Symbol Is Nothing OrElse TypeSymbol.Equals(Me.Symbols(0).ContainingType, other.Symbol.ContainingType, TypeCompareKind.ConsiderEverything)) 739Debug.Assert(TypeSymbol.Equals(symbol1.ContainingType, symbol2.ContainingType, TypeCompareKind.ConsiderEverything)) 740If symbol1.Kind <> SymbolKind.Field OrElse symbol2.Kind <> SymbolKind.Field OrElse symbol1.ContainingType.TypeKind <> TypeKind.Enum Then
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
144For Each member In accessor.ContainingType.GetMembers()
Binding\TopLevelCodeBinder.vb (1)
20Debug.Assert(scriptInitializer.ContainingType.IsScriptClass)
BoundTree\BoundMethodOrPropertyGroup.vb (2)
45Return DirectCast(Me, BoundMethodGroup).Methods(0).ContainingType 48Return DirectCast(Me, BoundPropertyGroup).Properties(0).ContainingType
CodeGen\EmitAddress.vb (3)
274If Not TypeSymbol.Equals(field.ContainingType, Me._method.ContainingType, TypeCompareKind.ConsiderEverything) Then 385If fieldAccess.FieldSymbol.ContainingType.IsValueType Then
CodeGen\EmitConversion.vb (1)
269If AccessCheck.IsSymbolAccessible(constr, _method.ContainingType, typeTo, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
CodeGen\EmitExpression.vb (15)
493If Not method.IsShared AndAlso method.IsMetadataVirtual AndAlso Not method.ContainingType.IsDelegateType() AndAlso Not receiver.SuppressVirtualCalls Then 501If Not isStatic AndAlso targetMethod.ContainingType.IsNullableType Then 1032Dim methodContainingType = method.ContainingType 1040Debug.Assert(TypeSymbol.Equals(receiverType, method.ContainingType, TypeCompareKind.ConsiderEverything)) 1091If IsMeReceiver(receiver) AndAlso method.ContainingType.IsNotInheritable Then 1312Debug.Assert(IsVerifierValue(method.ContainingType), "this is not a value type") 1323Dim containingType = method.ContainingType 2261If Not node.Field.ContainingType.IsGenericType Then 2262Debug.Assert(Not node.Field.ContainingType.IsAnonymousType) ' NO anonymous types field access expected 2268EmitSymbolToken(node.Field.ContainingType, node.Syntax) 2294Debug.Assert(Not method.ContainingType.IsGenericType AndAlso Not method.ContainingType.IsAnonymousType) 2297Debug.Assert(method.ContainingType.IsGenericType OrElse method.ContainingType.IsAnonymousType) 2301EmitSymbolToken(method.ContainingType, node.Syntax)
Compilation\ClsComplianceChecker.vb (12)
213CheckParameterCompliance(symbol.Parameters, symbol.ContainingType) 214CheckTypeParameterCompliance(symbol.TypeParameters, symbol.ContainingType) 234Dim containingType = symbol.ContainingType 261CheckParameterCompliance(symbol.Parameters, symbol.ContainingType) 324Dim containingType As NamedTypeSymbol = symbol.ContainingType 356Dim containingType As NamedTypeSymbol = symbol.ContainingType 432If ShouldReportNonCompliantType(type, symbol.ContainingType, symbol) Then 441CheckParameterCompliance(symbol.DelegateParameters, symbol.ContainingType) 442ElseIf ShouldReportNonCompliantType(type, symbol.ContainingType, symbol) Then 710Dim containing As Symbol = If(DirectCast(symbol.ContainingType, Symbol), GetContainingModuleOrAssembly(symbol)) 809symbol = symbol.ContainingType 821Dim containingType = symbol.ContainingType
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
783containingBinder = BinderBuilder.CreateBinderForType([module], tree, sym.ContainingType)
Compilation\MethodCompiler.vb (15)
139Return IsDefinedOrImplementedInSourceTree(symbol.ContainingType, tree, span) 430method.ContainingType.GetFirstLocation().PossiblyEmbeddedOrMySourceTree(), 431method.ContainingType)) 460Not referencedConstructor.ContainingType.Equals(method.ContainingType)) 720If referencedConstructor.ContainingType.Equals(containingType) Then 848_moduleBeingBuiltOpt.AddSynthesizedDefinition(method.ContainingType, DirectCast(matchingStub.GetCciAdapter(), Microsoft.Cci.IMethodDefinition)) 1377Debug.Assert(containingType Is getter.ContainingType AndAlso containingType Is setter.ContainingType) 1843injectDefaultConstructorCall = Not method.ContainingType.IsValueType 1870If referencedConstructor Is Nothing AndAlso method.ContainingType.BaseTypeNoUseSiteDiagnostics Is Nothing Then 1888Dim visitor As New InitializeComponentCallTreeBuilder(method.ContainingType) 1899Not node.Method.IsShared AndAlso node.Method.OriginalDefinition.ContainingType Is _containingType Then 1918Dim containingType As NamedTypeSymbol = constructor.ContainingType 2096Dim thisRef As New BoundMyBaseReference(syntaxNode, constructorToCall.ContainingType)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (5)
42Visit(symbol.ContainingType, builder) 50Visit(symbol.ContainingType, builder) 73Visit(symbol.ContainingType, builder) 95Visit(symbol.ContainingType, builder) 113Dim curr As NamedTypeSymbol = containingSymbol.ContainingType
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (2)
379If member.ContainingType Is Nothing Then 388Dim otherType As NamedTypeSymbol = DirectCast(Visit(member.ContainingType), NamedTypeSymbol)
Emit\EventSymbolAdapter.vb (2)
96Return AdaptedEventSymbol.ContainingType.GetCciAdapter() 111Return AdaptedEventSymbol.ContainingType.GetCciAdapter()
Emit\FieldSymbolAdapter.vb (2)
83Return moduleBeingBuilt.Translate(AdaptedFieldSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=AdaptedFieldSymbol.IsDefinition) 222Return AdaptedFieldSymbol.ContainingType.GetCciAdapter()
Emit\GenericMethodInstanceReference.vb (1)
34Debug.Assert(Not m_UnderlyingMethod.ContainingType.IsOrInGenericType())
Emit\MethodSymbolAdapter.vb (6)
51Debug.Assert(AdaptedMethodSymbol.ContainingType IsNot Nothing AndAlso IsOrInGenericType(AdaptedMethodSymbol.ContainingType)) 68Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics) 75Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=True) 217Dim container As NamedTypeSymbol = AdaptedMethodSymbol.ContainingType 248Return AdaptedMethodSymbol.ContainingType.GetCciAdapter()
Emit\NoPia\EmbeddedTypesManager.vb (2)
412Dim containerKind = field.AdaptedFieldSymbol.ContainingType.TypeKind 553Dim namedType = member.AdaptedSymbol.ContainingType
Emit\PEModuleBuilder.vb (1)
362Debug.Assert(sym.ContainingType Is Nothing)
Emit\PropertySymbolAdapter.vb (2)
155Return AdaptedPropertySymbol.ContainingType.GetCciAdapter() 168Return AdaptedPropertySymbol.ContainingType.GetCciAdapter()
Emit\SpecializedGenericMethodInstanceReference.vb (2)
25Debug.Assert(underlyingMethod.ContainingType.IsOrInGenericType() AndAlso underlyingMethod.ContainingType.IsDefinition)
Emit\SymbolTranslator.vb (4)
280ElseIf Not needDeclaration AndAlso IsOrInGenericType(fieldSymbol.ContainingType) Then 315Dim container As NamedTypeSymbol = methodSymbol.ContainingType 375Dim container As NamedTypeSymbol = methodSymbol.ContainingType 461container.ContainingType.IsGenericType
Emit\TypeMemberReference.vb (1)
17Return moduleBeingBuilt.Translate(UnderlyingSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
290Dim evaluateSideEffectsHere = evaluateSideEffects And Not isAssignmentTarget And fieldAccess.FieldSymbol.ContainingType.IsReferenceType
Lowering\AsyncRewriter\AsyncRewriter.CapturedSymbolOrExpression.vb (2)
74Dim framePointer As BoundExpression = rewriter.FramePointer(syntax, Me.Field.ContainingType) 155newReceiverOpt = Me.ReceiverOpt.Materialize(rewriter, Me.Field.ContainingType.IsValueType)
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
119Dim containingType As NamedTypeSymbol = method.ContainingType
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
385receiverOpt = CreateLiteralExpression(receiverOpt, method.ContainingType) 417rewrittenReceiver = CreateLiteralExpression(origReceiverOpt.MakeRValue, field.ContainingType) 474receiverOpt = New BoundMeReference(receiverOpt.Syntax, method.ContainingType) 496Dim methodInfo As BoundExpression = Me._factory.MethodInfo(targetMethod, createDelegate.ContainingType)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
134Dim containingType = method.ContainingType
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
223Dim framePointer As BoundExpression = Me.FramePointer(syntax, proxy.ContainingType)
Lowering\LambdaRewriter\LambdaFrame.vb (1)
59MyBase.New(topLevelMethod, MakeName(scopeSyntaxOpt, methodId, closureId, isStatic, isDelegateRelaxationFrame), topLevelMethod.ContainingType, ImmutableArray(Of NamedTypeSymbol).Empty)
Lowering\LambdaRewriter\LambdaRewriter.vb (14)
138_framePointers(method.ContainingType) = method.MeParameter 304CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter()) 346CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter()) 406Dim innerFrame As BoundExpression = FramePointer(syntax, proxyField.ContainingType) 416Dim frame As BoundExpression = FramePointer(origExpression.Syntax, proxy.ContainingType) 527Debug.Assert(TypeSymbol.Equals(frameType, constructor.ContainingType, TypeCompareKind.ConsiderEverything)) 703If(_currentMethod.ContainingType Is _topLevelMethod.ContainingType, 705FramePointer(node.Syntax, TryCast(_topLevelMethod.ContainingType, NamedTypeSymbol)))) 710If(_currentMethod.ContainingType Is _topLevelMethod.ContainingType, 712FramePointer(node.Syntax, TryCast(_topLevelMethod.ContainingType, NamedTypeSymbol)))) 1101translatedLambdaContainer = DirectCast(_topLevelMethod.ContainingType, InstanceTypeSymbol) 1467method.ContainingType.IsAnonymousType AndAlso
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (3)
213[event].ContainingType.IsInterfaceType() Then 215Dim [interface] = [event].ContainingType 284Dim eventInfo = factory.[New](ctor, factory.Typeof([event].ContainingType, ctor.Parameters(0).Type), factory.Literal([event].MetadataName))
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
198TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso
Lowering\LocalRewriter\LocalRewriter_Constant.vb (2)
47currentMethod.ContainingType.SpecialType <> SpecialType.System_Decimal Then 147currentMethod.ContainingType.SpecialType <> SpecialType.System_DateTime) Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
979Debug.Assert(memberSymbol.ContainingType Is typeTo) 1118Debug.Assert(memberSymbol.ContainingType Is typeTo)
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (3)
38Dim tupleType = tupleField.ContainingType 48If Not TypeSymbol.Equals(underlyingField.ContainingType, currentLinkType, TypeCompareKind.ConsiderEverything) Then 63Loop While Not TypeSymbol.Equals(underlyingField.ContainingType, currentLinkType, TypeCompareKind.ConsiderEverything)
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (1)
52meReferenceOpt = New BoundMeReference(syntax, _currentMethodOrLambda.ContainingType)
Lowering\LocalRewriter\LocalRewriter_HostObjectMemberReference.vb (1)
19Dim meReference = New BoundMeReference(syntax, _topMethod.ContainingType)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (5)
141_emitModule.AddSynthesizedDefinition(Me._topMethod.ContainingType, result.Key.GetCciAdapter()) 144_emitModule.AddSynthesizedDefinition(Me._topMethod.ContainingType, result.Value.GetCciAdapter()) 160New BoundMeReference(node.Syntax, _topMethod.ContainingType)), 195New BoundMeReference(syntax, _topMethod.ContainingType)), 287ctorIncompleteInitialization.ContainingType))
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
32ctor.ContainingType)
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.vb (1)
21Dim meReference = New BoundMeReference(syntax, _topMethod.ContainingType)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
121If method.IsShared AndAlso method.ContainingType.SpecialType = SpecialType.System_String Then
Lowering\LocalRewriter\LocalRewriter_TupleLiteralExpression.vb (2)
84Binder.CheckRequiredMembersInObjectInitializer(tuple8Ctor, tuple8Ctor.ContainingType, initializers:=ImmutableArray(Of BoundExpression).Empty, syntax, _diagnostics) 93currentCreation = New BoundObjectCreationExpression(syntax, constructor, ctorArguments, initializerOpt:=Nothing, type:=constructor.ContainingType)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
187Debug.Assert(TypeSymbol.Equals(objCreation.ConstructorOpt.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything)) 201Debug.Assert(TypeSymbol.Equals(constructor.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XDocument), TypeCompareKind.ConsiderEverything))
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (4)
33Dim callingMethodType As TypeSymbol = Me.CurrentMethod.ContainingType 34Dim topLevelMethodType As TypeSymbol = Me.TopLevelMethod.ContainingType 80Dim containingType As NamedTypeSymbol = Me.TopLevelMethod.ContainingType 81Dim methodContainingType As NamedTypeSymbol = method.ContainingType
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (3)
262Dim newContainer As TypeSymbol = method.ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 297Dim newContainer As TypeSymbol = [property].ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 324Dim newContainer As TypeSymbol = field.ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly()
Lowering\StateMachineRewriter\StateMachineRewriter.vb (5)
63Me.F = New SyntheticBoundNodeFactory(method, method, method.ContainingType, body.Syntax, compilationState, diagnostics) 208Dim typeName As String = parameter.ContainingSymbol.ContainingType.Name 216Method.ContainingType, 226Dim initialMe As TProxy = If(Me.Method.ContainingType.IsStructureType(), 229Me.Method.ContainingType,
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (1)
69Dim kickoffType = KickoffMethod.ContainingType
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
43Me._containingType = topLevelMethod.ContainingType
Lowering\SyntheticBoundNodeFactory.vb (5)
471Dim boundNode = New BoundObjectCreationExpression(_syntax, ctor, ImmutableArray.Create(args), Nothing, ctor.ContainingType) 481ctor.ContainingType) 895Dim isInGenericType As Boolean = DirectCast(method.ContainingType.GetTupleUnderlyingTypeOrSelf(), NamedTypeSymbol).IsGenericType OrElse method.ContainingType.IsAnonymousType 951WellKnownMember(Of MethodSymbol)(If(field.ContainingType.IsGenericType,
Semantics\AccessCheck.vb (7)
135Return CheckMemberAccessibility(symbol.ContainingType, symbol.DeclaredAccessibility, within, throughTypeOpt, basesBeingResolved, useSiteInfo) 692Dim containingType As NamedTypeSymbol = member.ContainingType 788Dim enclosingType As NamedTypeSymbol = symbol.ContainingType 883If CanBeAccessedThroughInheritance(exposedType, exposingMember.ContainingType, isOutsideAssembly, useSiteInfo) Then 996Dim enclosingType As NamedTypeSymbol = member.ContainingType 1126Dim membersContainer As NamedTypeSymbol = member.ContainingType 1174membersContainer = member.ContainingType
Semantics\Conversions.vb (1)
1114If source.IsInferredDelegateForThisLambda(delegateInvoke.ContainingType) Then
Semantics\Operators.vb (3)
315Dim containingType As NamedTypeSymbol = method.ContainingType 2349If Not method.ContainingType.IsDefinition Then 2791If Not method.ContainingType.IsGenericType Then
Semantics\OverloadResolution.vb (13)
188Return m_Method.ContainingType 194Return m_Method.ContainingType 253Return (leastOverriddenDefinition.ContainingType, leastOverriddenDefinition.OverloadResolutionPriority) 427Return _property.ContainingType 433Return _property.ContainingType 492Return (leastOverriddenDefinition.ContainingType, leastOverriddenDefinition.OverloadResolutionPriority) 972possiblyConstructor.ContainingType.Name = AttributeDescription.OverloadResolutionPriorityAttribute.Name AndAlso 973possiblyConstructor.ContainingType.IsCompilerServicesTopLevelType() Then 3757binder.Compilation.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(candidate.Candidate.UnderlyingSymbol.ContainingType, useSiteInfo) Then 4528Dim existingType As NamedTypeSymbol = existingSymbol.ContainingType 4529Dim newType As NamedTypeSymbol = newSymbol.ContainingType 4630If Not ((left.Candidate.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse 4632(right.Candidate.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
262Dim type = method.ContainingType
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
17MyBase.New([property].ContainingType, [property])
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (4)
276Debug.Assert(method.ContainingType Is Me) 284Debug.Assert(method.ContainingType.IsAnonymousType) 294For Each member In method.ContainingType.GetMembers() 300Debug.Assert(index < method.ContainingType.GetMembers().Length)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
21MyBase.New([property].ContainingType, [property])
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (5)
221AddReferencedSymbolWithDependents(symbol.ContainingType, allSymbols) 229AddReferencedSymbolWithDependents(symbol.ContainingType, allSymbols) 254AddReferencedSymbolWithDependents(symbol.ContainingType, allSymbols) 299If symbol.ContainingType IsNot Nothing Then 300AddReferencedSymbolWithDependents(symbol.ContainingType, allSymbols)
Symbols\EventSymbol.vb (3)
378Return TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso Me.OriginalDefinition Is other.OriginalDefinition 383code = Hash.Combine(Me.ContainingType, code)
Symbols\FieldSymbol.vb (1)
397Return If(TypeSymbol.Equals(newOwner, Me.ContainingType, TypeCompareKind.ConsiderEverything),
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1042Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
670New MetadataDecoder(containingModule, DirectCast(ContainingType, PENamedTypeSymbol)))
Symbols\MethodSignatureComparer.vb (1)
799Dim containingType As NamedTypeSymbol = method.ContainingType
Symbols\MethodSymbol.vb (5)
228Dim containingType As NamedTypeSymbol = Me.ContainingType 496Return Me.MethodKind = MethodKind.Constructor AndAlso Me.ContainingType.IsScriptClass 519If Me.ContainingType.IsEmbedded Then 551Dim type = Me.ContainingType 785Return Me.ContainingType
Symbols\NamespaceOrTypeSymbol.vb (1)
236Return originalBinder.CanAddLookupSymbolInfo(method, options, nameSet, accessThroughType:=method.ContainingType)
Symbols\OverriddenMembersResult.vb (2)
90Dim overriddenByDefinitionContaining As NamedTypeSymbol = overriddenByDefinitionMember.ContainingType 92Dim baseType As NamedTypeSymbol = substitutedOverridingMember.ContainingType.BaseTypeNoUseSiteDiagnostics
Symbols\PropertySymbol.vb (2)
212TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso 404Return ContainingType
Symbols\ReducedExtensionMethodSymbol.vb (2)
57Debug.Assert(Not possiblyExtensionMethod.ContainingType.IsGenericType) 349Return _curriedFromMethod.ContainingType
Symbols\Retargeting\RetargetingSymbolTranslator.vb (6)
69container.ContainingType, 675newAttributeType = newAttributeCtor.ContainingType 885Dim containingType = method.ContainingType 1004Dim containingType As NamedTypeSymbol = _toFind.ContainingType 1037Dim containingType = [event].ContainingType 1069Dim containingType = [property].ContainingType
Symbols\Source\CustomEventAccessorSymbol.vb (1)
230diagnostics.Add(ERRID.ERR_EventImplRemoveHandlerParamWrong, location, _event.Name, firstImplementedEvent.Name, firstImplementedEvent.ContainingType)
Symbols\Source\ImplementsHelper.vb (12)
226possibleMatchMember.ContainingType.IsInterface AndAlso 254If second.ContainingType.ImplementsInterface(first.ContainingType, comparer:=Nothing, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then 258ElseIf first.ContainingType.ImplementsInterface(second.ContainingType, comparer:=Nothing, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then 288If TypeSymbol.Equals(first.ContainingType, second.ContainingType, TypeCompareKind.ConsiderEverything) Then 292CustomSymbolDisplayFormatter.ShortNameWithTypeArgs(first.ContainingType), 294CustomSymbolDisplayFormatter.ShortNameWithTypeArgs(first.ContainingType), 547ErrorFactory.ErrorInfo(ERRID.ERR_ImplementsWithConstraintMismatch3, implementingMethod, implementedMethod.ContainingType, implementedMethod), 568Dim interfaceType As NamedTypeSymbol = interfaceMember.ContainingType 672Dim unsubstitutedInterfaceType = unsubstitutedMember.ContainingType
Symbols\Source\MeParameterSymbol.vb (1)
22Me._type = _container.ContainingType
Symbols\Source\OverrideHidingHelper.vb (20)
412hiddenMember.ContainingType.GetKindText(), 413CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 422associatedhiddenSymbol.GetKindText(), AssociatedSymbolName(associatedhiddenSymbol), hiddenMember.ContainingType.GetKindText(), 423CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 429hidingMember.Name, hiddenMember.ContainingType.GetKindText(), 430CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 438If hiddenMember.IsOverridable OrElse hiddenMember.IsOverrides OrElse (hiddenMember.IsMustOverride AndAlso Not hiddenMember.ContainingType.IsInterface) Then 445hidingMember.GetKindText(), hidingMember.Name, hiddenMember.ContainingType.GetKindText(), 446CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 452hidingMember.GetKindText(), hidingMember.Name, hiddenMember.GetKindText(), hiddenMember.ContainingType.GetKindText(), 453CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 477hiddenMember.ContainingType.GetKindText(), 478CustomSymbolDisplayFormatter.ShortErrorName(hiddenMember.ContainingType)), 639Dim containingType As NamedTypeSymbol = overridingSym.ContainingType 818Dim memberContainingType As NamedTypeSymbol = member.ContainingType 865CustomSymbolDisplayFormatter.ShortErrorName(overriddenMembers(0).ContainingType), 908member, member.ContainingType, overriddenMember, overriddenMember.ContainingType, inaccessibleMember.ContainingType), 984If Not AccessCheck.IsSymbolAccessible(overriddenAccessor.OriginalDefinition, overridingAccessor.ContainingType, Nothing, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Symbols\Source\SourceEventSymbol.vb (2)
215implemented.ContainingType) 300diagnostics.Add(ERRID.ERR_EventImplMismatch5, errLocation, {Me, implemented, implemented.ContainingType, type, implemented.Type})
Symbols\Source\SourceMemberContainerTypeSymbol.vb (5)
834Dim container As NamedTypeSymbol = type.ContainingType 977syntax = method.ContainingType.GetDeclaringSyntaxNode(Of MethodBaseSyntax)() 2157firstField.ContainingType, 2170firstField.ContainingType.Name, 3395CustomSymbolDisplayFormatter.ShortNameWithTypeArgs(interfaceMember.ContainingType),
Symbols\Source\SourceMemberMethodSymbol.vb (1)
659Dim isFromBase = Not TypeSymbol.Equals(witheventsProperty.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)
Symbols\Source\SourceMethodSymbol.vb (1)
1769If methodImpl IsNot Nothing AndAlso (methodImpl.IsAsync OrElse methodImpl.IsIterator) AndAlso Not methodImpl.ContainingType.IsInterfaceType() Then
Symbols\Source\SourceParameterSymbol.vb (1)
104Not Me.ContainingType.AssociatedSymbol?.IsImplicitlyDeclared Then
Symbols\Source\SynthesizedStaticLocalBackingField.vb (1)
31MyBase.New(implicitlyDefinedBy.ContainingType,
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
70Dim meReference = New BoundMeReference(syntax, constructor.ContainingType)
Symbols\SubstitutedErrorType.vb (1)
275Not containingType.Equals(obj.ContainingType, comparison) Then
Symbols\SubstitutedMethodSymbol.vb (7)
120Return Me.ContainingType 367_hash = Hash.Combine(ContainingType, _hash) 390Dim containingType = Me.ContainingType 392If Not Me.ContainingType.Equals(other.ContainingType) Then 451Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\SubstitutedNamedType.vb (2)
443Debug.Assert(TypeSymbol.Equals(member.ContainingType, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 547Not containingType.Equals(other.ContainingType, comparison) Then
Symbols\Symbol.vb (6)
98If ContainingType.TypeKind = TypeKind.Submission Then 112If ContainingType.TypeKind = TypeKind.Submission Then 119Debug.Assert(ContainingType.TypeKind <> TypeKind.Submission) 194Return container.ContainingType 1238Return Me.ContainingType 1244Return Me.ContainingType
Symbols\SymbolExtensions.vb (4)
212Return sym.ContainingType.IsInterfaceType() AndAlso 274method.ContainingType.IsValueType AndAlso 404Dim upperLevelType = If(symbol.Kind = SymbolKind.NamedType, DirectCast(symbol, NamedTypeSymbol), symbol.ContainingType) 435If type Is origMember.ContainingType Then
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
71Return _attributeConstructor.ContainingType
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (2)
69Return _propertyOrEvent.ContainingType 75Return _propertyOrEvent.ContainingType
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
36MyBase.New(implementingMethod.ContainingType)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (1)
108Return propertySetter.ContainingType.IsInterface
Symbols\Tuples\TupleFieldSymbol.vb (4)
89Debug.Assert(container.UnderlyingNamedType.IsSameTypeIgnoringAll(underlyingField.ContainingType) OrElse TypeOf Me Is TupleVirtualElementFieldSymbol, 182Dim flag As Boolean = Me._underlyingField.ContainingType IsNot Me._containingTuple.TupleUnderlyingType 195Dim flag As Boolean = Me._underlyingField.ContainingType IsNot Me._containingTuple.TupleUnderlyingType 235Debug.Assert(name <> underlyingField.Name OrElse Not container.UnderlyingNamedType.Equals(underlyingField.ContainingType),
Symbols\Tuples\TupleTypeSymbol.vb (1)
937If originalDefinition.ContainingType Is Me._underlyingType.OriginalDefinition Then
Symbols\TypeSubstitution.vb (4)
310current = current.ContainingType 515If parent Is Nothing OrElse parent.TargetGenericDefinition Is targetGenericDefinition.ContainingType Then 519Dim containingType As NamedTypeSymbol = targetGenericDefinition.ContainingType 568(targetGenericDefinition.ContainingType.IsOrInGenericType() AndAlso parent IsNot Nothing))) OrElse
Symbols\TypeSymbol.vb (3)
676Not Me.ImplementsInterface(interfaceMember.ContainingType, comparer:=EqualsIgnoringComparer.InstanceCLRSignatureCompare, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then 786EqualsIgnoringComparer.InstanceCLRSignatureCompare.Equals(x.ContainingType, y.ContainingType)
Symbols\TypeSymbolExtensions.vb (4)
836Dim containingType = current.ContainingType 846Debug.Assert(current.ContainingType Is Nothing) 1333Return typeSymbol.ContainingType Is Nothing AndAlso IsContainedInNamespace(typeSymbol, "System", "Runtime", "CompilerServices") 1343typeSymbol.ContainingType Is Nothing AndAlso
Symbols\WellKnownMembers.vb (2)
109Dim attributeUsage As AttributeUsageInfo = attributeCtor.ContainingType.GetAttributeUsageInfo() 203constructor.ContainingType.GetUseSiteInfo().DiagnosticInfo Is Nothing)
Utilities\TypeUnification.vb (1)
213If i > substitutionPairs.Count - 1 OrElse substitutionPairs(i).Key.ContainingType.IsSameOrNestedWithin(tp.ContainingType) Then