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)
101Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
279Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
145Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\NamedTypeSymbol.vb (1)
101Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\NamespaceSymbol.vb (1)
106Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\ReducedExtensionMethodSymbol.vb (1)
339Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\SignatureOnlyPropertySymbol.vb (1)
69Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceEventSymbol.vb (1)
425Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceFieldSymbol.vb (1)
106Public NotOverridable Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceMethodSymbol.vb (1)
602Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1104Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol 1705Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SourcePropertySymbol.vb (1)
431Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Symbols\Source\SynthesizedFieldSymbol.vb (1)
120Public 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)
219Public 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
491 references to ContainingType
Microsoft.CodeAnalysis.VisualBasic (378)
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.vb (2)
581member.MergeUseSiteInfo(useSiteInfo, member.ContainingType.GetUseSiteInfo()) 957If(symbol.ContainingType?.IsInterface, False) Then
Binding\Binder_Attributes.vb (1)
339Dim container = param.Type.ContainingType
Binding\Binder_Conversions.vb (3)
892If oneVariantDifference.TypeParameter.ContainingType.IsDelegateType Then 938If oneInvariantDifference.ContainingType.IsDelegateType Then 1344ElseIf unboundLambda.IsInferredDelegateForThisLambda(delegateInvoke.ContainingType) Then
Binding\Binder_Delegates.vb (8)
299fromMethod.ContainingType.IsNullableType AndAlso 312fromMethod.ContainingType, 587toMethod.ContainingType, 607delegateSymbol:=toMethod.ContainingType, 703toMethod.ContainingType, 741targetMethodSymbol.ContainingType) 765targetMethodSymbol.ContainingType) 948ElseIf TypeOf sym.ContainingType Is SynthesizedEventDelegateSymbol Then
Binding\Binder_Expressions.vb (2)
2536Dim memberDeclaringType = result.Symbols(0).ContainingType 2561Dim container = member.ContainingType
Binding\Binder_Initializers.vb (1)
110If Not initializer.FieldsOrProperties.IsDefault AndAlso initializer.FieldsOrProperties.First.ContainingType.IsEnumType Then
Binding\Binder_Invocation.vb (21)
1094If Compilation.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_Strings) IsNot method.ContainingType Then 1465singleSymbol, singleSymbol.ContainingType) 1477singleSymbol, singleSymbol.ContainingType) 1776Dim container As NamedTypeSymbol = bestSymbols(0).ContainingType 1779If Not TypeSymbol.Equals(bestSymbols(i).ContainingType, container, TypeCompareKind.ConsiderEverything) Then 1801diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate2, bestSymbol, bestSymbol.ContainingType)) 1809diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, bestSymbol, bestSymbol.ContainingType, notMostSpecificMessage)) 1899symbol, symbol.ContainingType, DirectCast(iDiagnostic, DiagnosticWithInfo).Info)) 1910symbol, symbol.ContainingType, 2069candidateSymbol, candidateSymbol.ContainingType) 2138candidateSymbol, candidateSymbol.ContainingType) 2165candidateSymbol, candidateSymbol.ContainingType) 2186candidateSymbol, candidateSymbol.ContainingType) 2222candidateSymbol, candidateSymbol.ContainingType) 2243ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous3, ERRID.ERR_TypeInferenceFailureAmbiguous3), candidateSymbol, candidateSymbol.ContainingType) 2251ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest3, ERRID.ERR_TypeInferenceFailureNoBest3), candidateSymbol, candidateSymbol.ContainingType) 2265ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit3, ERRID.ERR_TypeInferenceFailure3), candidateSymbol, candidateSymbol.ContainingType) 2352candidateSymbol, candidateSymbol.ContainingType) 2363ERRID.ERR_TooManyArgs2, candidateSymbol, candidateSymbol.ContainingType) 2433candidateSymbol, candidateSymbol.ContainingType) 3276methodSymbol.ContainingType)
Binding\Binder_Lookup.vb (13)
558Dim deferredFormattedList As New FormattedSymbolList(syms.Select(Function(sym) sym.ContainingType)) 1211Dim containingType As NamedTypeSymbol = methods(i).ContainingType 1223lookupResult.MergeOverloadedOrPrioritizedExtensionMethods(binder.CheckViability(reduced, arity, options, reduced.ContainingType, useSiteInfo)) 1278singleResult = binder.CheckViability(reduced, arity, options, reduced.ContainingType, useSiteInfo) 1556Dim interface1 = DirectCast(symbols(i).ContainingType, NamedTypeSymbol) 1570CustomSymbolDisplayFormatter.DefaultErrorFormat(symbols(i).ContainingType), 1571CustomSymbolDisplayFormatter.DefaultErrorFormat(symbols(j).ContainingType)) 1738Dim newSymbolContainer = newSymbols.First().ContainingType 1748Dim knownSymbolContainer = knownSymbol.ContainingType 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_Operators.vb (1)
661bitwiseCandidate.UnderlyingSymbol.ContainingType,
Binding\Binder_Statements.vb (2)
350If InitializerRewriter.HasExplicitMeConstructorCall(body, ContainingMember.ContainingType, hasMyBaseConstructorCall) OrElse hasMyBaseConstructorCall Then 2525If Not TypeSymbol.Equals(fireMethod.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) Then
Binding\BinderBuilder.vb (3)
277containingType = target.ContainingSymbol.ContainingType 280containingType = target.ContainingType 321Dim containingType = containingSymbol.ContainingType()
Binding\BindingDiagnosticBag.vb (1)
120AddDependencies(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 (5)
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 (13)
467If method.IsMetadataVirtual AndAlso Not method.ContainingType.IsDelegateType() AndAlso Not receiver.SuppressVirtualCalls Then 475If Not isStatic AndAlso targetMethod.ContainingType.IsNullableType Then 1006Dim methodContainingType = method.ContainingType 1014Debug.Assert(TypeSymbol.Equals(receiverType, method.ContainingType, TypeCompareKind.ConsiderEverything)) 1075If IsMeReceiver(receiver) AndAlso method.ContainingType.IsNotInheritable Then 1186Debug.Assert(IsVerifierValue(method.ContainingType), "this is not a value type") 1197Dim containingType = method.ContainingType 2117If Not node.Field.ContainingType.IsGenericType Then 2118Debug.Assert(Not node.Field.ContainingType.IsAnonymousType) ' NO anonymous types field access expected 2124EmitSymbolToken(node.Field.ContainingType, node.Syntax) 2149If Not method.ContainingType.IsGenericType AndAlso Not method.ContainingType.IsAnonymousType Then ' anonymous types are generic under the hood. 2154EmitSymbolToken(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 (14)
140Return IsDefinedOrImplementedInSourceTree(symbol.ContainingType, tree, span) 420method.ContainingType.Locations(0).PossiblyEmbeddedOrMySourceTree(), 421method.ContainingType)) 450Not referencedConstructor.ContainingType.Equals(method.ContainingType)) 710If referencedConstructor.ContainingType.Equals(containingType) Then 838_moduleBeingBuiltOpt.AddSynthesizedDefinition(method.ContainingType, DirectCast(matchingStub.GetCciAdapter(), Microsoft.Cci.IMethodDefinition)) 1355Debug.Assert(containingType Is getter.ContainingType AndAlso containingType Is setter.ContainingType) 1784injectDefaultConstructorCall = Not method.ContainingType.IsValueType 1830Dim visitor As New InitializeComponentCallTreeBuilder(method.ContainingType) 1841Not node.Method.IsShared AndAlso node.Method.OriginalDefinition.ContainingType Is _containingType Then 1860Dim containingType As NamedTypeSymbol = constructor.ContainingType 2036Dim thisRef As New BoundMeReference(syntaxNode, constructor.ContainingType)
Compilation\SyntaxTreeSemanticModel.vb (3)
719DirectCast(implementingMember, MethodSymbol).ContainingType, 729DirectCast(implementingMember, PropertySymbol).ContainingType, 739DirectCast(implementingMember, EventSymbol).ContainingType,
Compilation\VisualBasicCompilation.vb (1)
1612If candidate.IsGenericMethod OrElse candidate.ContainingType.IsGenericType Then
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 (1)
518Dim otherType As NamedTypeSymbol = DirectCast(Visit(member.ContainingType), NamedTypeSymbol)
Emit\EventSymbolAdapter.vb (2)
90Return AdaptedEventSymbol.ContainingType.GetCciAdapter() 105Return AdaptedEventSymbol.ContainingType.GetCciAdapter()
Emit\FieldSymbolAdapter.vb (2)
77Return moduleBeingBuilt.Translate(AdaptedFieldSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=AdaptedFieldSymbol.IsDefinition) 216Return AdaptedFieldSymbol.ContainingType.GetCciAdapter()
Emit\GenericMethodInstanceReference.vb (1)
34Debug.Assert(Not m_UnderlyingMethod.ContainingType.IsOrInGenericType())
Emit\MethodSymbolAdapter.vb (6)
43Debug.Assert(AdaptedMethodSymbol.ContainingType IsNot Nothing AndAlso IsOrInGenericType(AdaptedMethodSymbol.ContainingType)) 60Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics) 67Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=True) 215Dim container As NamedTypeSymbol = AdaptedMethodSymbol.ContainingType 246Return AdaptedMethodSymbol.ContainingType.GetCciAdapter()
Emit\NoPia\EmbeddedTypesManager.vb (2)
366Dim containerKind = field.AdaptedFieldSymbol.ContainingType.TypeKind 507Dim namedType = member.AdaptedSymbol.ContainingType
Emit\PEModuleBuilder.vb (1)
366Debug.Assert(sym.ContainingType Is Nothing)
Emit\PropertySymbolAdapter.vb (2)
149Return AdaptedPropertySymbol.ContainingType.GetCciAdapter() 162Return AdaptedPropertySymbol.ContainingType.GetCciAdapter()
Emit\SpecializedGenericMethodInstanceReference.vb (2)
25Debug.Assert(underlyingMethod.ContainingType.IsOrInGenericType() AndAlso underlyingMethod.ContainingType.IsDefinition)
Emit\SymbolTranslator.vb (7)
281ElseIf Not needDeclaration AndAlso IsOrInGenericType(fieldSymbol.ContainingType) Then 324If symbol.ContainingType.TypeKind = TypeKind.Submission Then 338If symbol.ContainingType.TypeKind = TypeKind.Submission Then 345Debug.Assert(symbol.ContainingType.TypeKind <> TypeKind.Submission) 373Dim container As NamedTypeSymbol = methodSymbol.ContainingType 433Dim container As NamedTypeSymbol = methodSymbol.ContainingType 519container.ContainingType.IsGenericType
Emit\TypeMemberReference.vb (1)
16Return moduleBeingBuilt.Translate(UnderlyingSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
320Dim 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 (3)
376receiverOpt = CreateLiteralExpression(receiverOpt, method.ContainingType) 408rewrittenReceiver = CreateLiteralExpression(origReceiverOpt.MakeRValue, field.ContainingType) 459receiverOpt = New BoundMeReference(receiverOpt.Syntax, method.ContainingType)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
134Dim containingType = method.ContainingType
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
218Dim framePointer As BoundExpression = Me.FramePointer(syntax, proxy.ContainingType)
Lowering\LambdaRewriter\LambdaFrame.vb (1)
54MyBase.New(topLevelMethod, MakeName(scopeSyntaxOpt, methodId, closureId, isStatic, isDelegateRelaxationFrame), topLevelMethod.ContainingType, ImmutableArray(Of NamedTypeSymbol).Empty)
Lowering\LambdaRewriter\LambdaRewriter.vb (14)
133_framePointers(method.ContainingType) = method.MeParameter 292CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter()) 326CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(_topLevelMethod.ContainingType, frame.GetCciAdapter()) 386Dim innerFrame As BoundExpression = FramePointer(syntax, proxyField.ContainingType) 396Dim frame As BoundExpression = FramePointer(origExpression.Syntax, proxy.ContainingType) 507Debug.Assert(TypeSymbol.Equals(frameType, constructor.ContainingType, TypeCompareKind.ConsiderEverything)) 683If(_currentMethod.ContainingType Is _topLevelMethod.ContainingType, 685FramePointer(node.Syntax, TryCast(_topLevelMethod.ContainingType, NamedTypeSymbol)))) 690If(_currentMethod.ContainingType Is _topLevelMethod.ContainingType, 692FramePointer(node.Syntax, TryCast(_topLevelMethod.ContainingType, NamedTypeSymbol)))) 1053translatedLambdaContainer = DirectCast(_topLevelMethod.ContainingType, InstanceTypeSymbol) 1419method.ContainingType.IsAnonymousType AndAlso
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (3)
213[event].ContainingType.IsInterfaceType() Then 215Dim [interface] = [event].ContainingType 276Dim eventInfo = factory.[New](ctor, factory.Typeof([event].ContainingType), 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)
1065Debug.Assert(memberSymbol.ContainingType Is typeTo) 1204Debug.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)
142_emitModule.AddSynthesizedDefinition(Me._topMethod.ContainingType, result.Key.GetCciAdapter()) 145_emitModule.AddSynthesizedDefinition(Me._topMethod.ContainingType, result.Value.GetCciAdapter()) 161New BoundMeReference(node.Syntax, _topMethod.ContainingType)), 196New BoundMeReference(syntax, _topMethod.ContainingType)), 288ctorIncompleteInitialization.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 (1)
88currentCreation = 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)
263Dim newContainer As TypeSymbol = method.ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 298Dim newContainer As TypeSymbol = [property].ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 325Dim 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) 206Dim typeName As String = parameter.ContainingSymbol.ContainingType.Name 214Method.ContainingType, 224Dim initialMe As TProxy = If(Me.Method.ContainingType.IsStructureType(), 227Me.Method.ContainingType,
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (1)
69Dim kickoffType = KickoffMethod.ContainingType
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
43Me._containingType = topLevelMethod.ContainingType
Lowering\SyntheticBoundNodeFactory.vb (4)
467Dim boundNode = New BoundObjectCreationExpression(_syntax, ctor, ImmutableArray.Create(args), Nothing, ctor.ContainingType) 477ctor.ContainingType) 875WellKnownMember(Of MethodSymbol)(If(method.ContainingType.IsGenericType, 917WellKnownMember(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)
1110If 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 (9)
185Return m_Method.ContainingType 191Return m_Method.ContainingType 402Return _property.ContainingType 408Return _property.ContainingType 3396binder.Compilation.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(candidate.Candidate.UnderlyingSymbol.ContainingType, useSiteInfo) Then 4127Dim existingType As NamedTypeSymbol = existingSymbol.ContainingType 4128Dim newType As NamedTypeSymbol = newSymbol.ContainingType 4229If Not ((left.Candidate.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse 4231(right.Candidate.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
82ReportErrorOnSymbol(symbol.ContainingType, diagnostics, hasError)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
279Dim type = method.ContainingType
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
17MyBase.New([property].ContainingType, [property])
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (4)
269Debug.Assert(method.ContainingType Is Me) 277Debug.Assert(method.ContainingType.IsAnonymousType) 287For Each member In method.ContainingType.GetMembers() 293Debug.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)
356Return TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso Me.OriginalDefinition Is other.OriginalDefinition 361code = Hash.Combine(Me.ContainingType, code)
Symbols\FieldSymbol.vb (1)
395Return If(TypeSymbol.Equals(newOwner, Me.ContainingType, TypeCompareKind.ConsiderEverything),
Symbols\Metadata\PE\PEMethodSymbol.vb (3)
967Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)) 1103If Not method.ContainingType.IsInterface Then 1114If method.ContainingType.IsInterface Then
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)
227Dim containingType As NamedTypeSymbol = Me.ContainingType 449Return Me.MethodKind = MethodKind.Constructor AndAlso Me.ContainingType.IsScriptClass 472If Me.ContainingType.IsEmbedded Then 504Dim type = Me.ContainingType 738Return 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)
214TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso 389Return ContainingType
Symbols\ReducedExtensionMethodSymbol.vb (2)
50Debug.Assert(Not possiblyExtensionMethod.ContainingType.IsGenericType) 341Return _curriedFromMethod.ContainingType
Symbols\Retargeting\RetargetingSymbolTranslator.vb (6)
72container.ContainingType, 683newAttributeType = newAttributeCtor.ContainingType 895Dim containingType = method.ContainingType 1014Dim containingType As NamedTypeSymbol = _toFind.ContainingType 1047Dim containingType = [event].ContainingType 1079Dim containingType = [property].ContainingType
Symbols\Source\CustomEventAccessorSymbol.vb (1)
229diagnostics.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\OverloadingHelper.vb (1)
169If IsCandidateMember(foundMember, kind) AndAlso foundMember.ContainingType IsNot container Then
Symbols\Source\OverrideHidingHelper.vb (25)
251CustomSymbolDisplayFormatter.QualifiedName(member.ContainingType), 255diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_UnimplementedMustOverride, member.ContainingType, member)) 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 821If Not TypeSymbol.Equals(builder(i).ContainingType, memberContainingType, TypeCompareKind.ConsiderEverything) AndAlso 865CustomSymbolDisplayFormatter.ShortErrorName(overriddenMembers(0).ContainingType), 908member, member.ContainingType, overriddenMember, overriddenMember.ContainingType, inaccessibleMember.ContainingType), 951If TypeSymbol.Equals(originalSym.ContainingType, originalOther.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso 984If Not AccessCheck.IsSymbolAccessible(overriddenAccessor.OriginalDefinition, overridingAccessor.ContainingType, Nothing, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Symbols\Source\SourceEventSymbol.vb (2)
212implemented.ContainingType) 297diagnostics.Add(ERRID.ERR_EventImplMismatch5, errLocation, {Me, implemented, implemented.ContainingType, type, implemented.Type})
Symbols\Source\SourceMemberContainerTypeSymbol.vb (5)
841Dim container As NamedTypeSymbol = type.ContainingType 984syntax = method.ContainingType.GetDeclaringSyntaxNode(Of MethodBaseSyntax)() 2150firstField.ContainingType, 2163firstField.ContainingType.Name, 3383CustomSymbolDisplayFormatter.ShortNameWithTypeArgs(interfaceMember.ContainingType),
Symbols\Source\SourceMemberMethodSymbol.vb (1)
658Dim isFromBase = Not TypeSymbol.Equals(witheventsProperty.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)
Symbols\Source\SourceMethodSymbol.vb (1)
1735If 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 363_hash = Hash.Combine(ContainingType, _hash) 386Dim containingType = Me.ContainingType 388If Not Me.ContainingType.Equals(other.ContainingType) Then 441Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\SubstitutedNamedType.vb (2)
437Debug.Assert(TypeSymbol.Equals(member.ContainingType, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 541Not containingType.Equals(other.ContainingType, comparison) Then
Symbols\Symbol.vb (3)
135Return container.ContainingType 1164Return Me.ContainingType 1170Return 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)
24wellKnownMember.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, 176Dim flag As Boolean = Me._underlyingField.ContainingType IsNot Me._containingTuple.TupleUnderlyingType 189Dim flag As Boolean = Me._underlyingField.ContainingType IsNot Me._containingTuple.TupleUnderlyingType 229Debug.Assert(name <> underlyingField.Name OrElse Not container.UnderlyingNamedType.Equals(underlyingField.ContainingType),
Symbols\Tuples\TupleTypeSymbol.vb (1)
931If originalDefinition.ContainingType Is Me._underlyingType.OriginalDefinition Then
Symbols\TypeSubstitution.vb (5)
310current = current.ContainingType 467Dim container As NamedTypeSymbol = targetGenericDefinition.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)
642Not Me.ImplementsInterface(interfaceMember.ContainingType, comparer:=EqualsIgnoringComparer.InstanceCLRSignatureCompare, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then 752EqualsIgnoringComparer.InstanceCLRSignatureCompare.Equals(x.ContainingType, y.ContainingType)
Symbols\TypeSymbolExtensions.vb (3)
836Dim containingType = current.ContainingType 846Debug.Assert(current.ContainingType Is Nothing) 1311Return typeSymbol.ContainingType Is Nothing AndAlso IsContainedInNamespace(typeSymbol, "System", "Runtime", "CompilerServices")
Symbols\WellKnownMembers.vb (2)
109Dim attributeUsage As AttributeUsageInfo = attributeCtor.ContainingType.GetAttributeUsageInfo() 203constructor.ContainingType.GetUseSiteInfo().DiagnosticInfo Is Nothing)
Utilities\TypeUnification.vb (2)
213If i > substitutionPairs.Count - 1 OrElse substitutionPairs(i).Key.ContainingType.IsSameOrNestedWithin(tp.ContainingType) Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenScriptTests.vb (1)
37Assert.Equal(c.ScriptClass, type.ContainingType)
CodeGen\CodeGenTuples.vb (5)
16408Assert.Same(m1Tuple.TupleUnderlyingType, m1ToString.TupleUnderlyingMethod.ContainingType) 22883Dim toEmit = field.ContainingType.GetFieldsToEmit().Where(Function(f) f.Name = "F1").Single() 22953Dim toEmit = field.ContainingType.GetFieldsToEmit().Where(Function(f) f.Name = "F1").Single() 23015Dim toEmit = field.ContainingType.GetFieldsToEmit().Single() 23081Dim toEmit = field.ContainingType.GetFieldsToEmit().Single()
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (23)
Binders\EENamedTypeBinder.vb (1)
64Debug.Assert(TypeSymbol.Equals(symbol.OriginalDefinition.ContainingType, substitutedSourceType.OriginalDefinition, TypeCompareKind.ConsiderEverything))
Binders\ParametersAndLocalsBinder.vb (1)
70Return _substitutedSourceMethod.ContainingType
CompilationContext.vb (6)
267If Not m.IsShared AndAlso (Not m.ContainingType.IsClosureOrStateMachineType() OrElse _displayClassVariables.ContainsKey(GeneratedNames.MakeStateMachineCapturedMeName())) Then 616Dim substitutedSourceType = substitutedSourceMethod.ContainingType 996Dim containingType = method.ContainingType 1059If method.ContainingType.IsClosureOrStateMachineType() Then 1347Dim candidateSubstitutedSourceType = candidateSubstitutedSourceMethod.ContainingType 1425Dim sourceTypeTypeParameters As ImmutableArray(Of TypeParameterSymbol) = candidateMethodDefinition.ContainingType.TypeParameters
EvaluationContext.vb (4)
228Dim typeName = currentFrame.ContainingType.Name 393Debug.Assert(synthesizedMethod.ContainingType.MetadataName = s_typeName) 442Debug.Assert(synthesizedMethod.ContainingType.MetadataName = s_typeName) 514Dim type = method.ContainingType
SymbolExtensions.vb (2)
79method.ContainingType.GetAllTypeParameters(builder) 86If GeneratedNameParser.GetKind(field.ContainingType.Name) <> GeneratedNameKind.AnonymousType Then
Symbols\DisplayClassVariable.vb (1)
98Return New EEDisplayClassFieldSymbol(typeMap.SubstituteNamedType(field.ContainingType), field.Name, typeMap.SubstituteType(field.Type), field.DeclaredAccessibility)
Symbols\EEMethodSymbol.vb (2)
65Debug.Assert(TypeSymbol.Equals(sourceMethod.ContainingType, container.SubstitutedSourceType.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 109Debug.Assert(TypeSymbol.Equals(_meParameter.Type, Me.SubstitutedSourceMethod.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\EENamedTypeSymbol.vb (2)
55_typeParameters = getTypeParameters(currentFrame.ContainingType, Me) 82Dim sourceType = currentFrame.ContainingType
Symbols\EEStaticLocalSymbol.vb (1)
24Debug.Assert(Not field.ContainingType.IsGenericType)
Symbols\ObjectIdLocalSymbol.vb (1)
92method.ContainingType,
VisualBasicCompileResult.vb (1)
21MyBase.New(assembly, method.ContainingType.MetadataName, method.MetadataName, formatSpecifiers)
VisualBasicInstructionDecoder.vb (1)
75Dim substitutedType = typeMap.SubstituteNamedType(method.ContainingType)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (4)
ExpressionCompilerTestBase.vb (1)
353VerifyTypeParameters(method.ContainingType)
ExpressionCompilerTests.vb (1)
2020Dim containingType = method.ContainingType
LocalsTests.vb (2)
1133Dim containingType = method.ContainingType 1284Dim containingType = method.ContainingType
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Compilation\MyTemplateTests.vb (1)
313Dim parent = sym.ContainingType
Semantics\BinaryOperators.vb (4)
1236symbol1.ContainingType.IsIntegralType(), 1248If TypeSymbol.Equals(symbol1.ContainingType, symbol1.ReturnType, TypeCompareKind.ConsiderEverything) Then 1252If TypeSymbol.Equals(symbol1.ContainingType, symbol1.Parameters(0).Type, TypeCompareKind.ConsiderEverything) Then 1256If TypeSymbol.Equals(symbol1.ContainingType, symbol1.Parameters(1).Type, TypeCompareKind.ConsiderEverything) Then
Semantics\RefFieldTests.vb (1)
166Dim containingType = fieldReferences(0).ContainingType
Semantics\UnaryOperators.vb (1)
763Assert.Equal(op = UnaryOperatorKind.Minus AndAlso symbol1.ContainingType.IsIntegralType(),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (73)
DocumentationComments\DocCommentTests.vb (4)
6740container:=symbols(0).ContainingType), 6747container:=symbols(0).ContainingType.ContainingType), 6766container:=symbols(0).ContainingType), 6773container:=secondSymbols(0).ContainingType),
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (1)
958Dim explicitImpMethodType = explicitImpMethod.ContainingType
SymbolsTests\CompilationCreationTests.vb (1)
1959Assert.Null(module3.ContainingType)
SymbolsTests\DefaultInterfaceImplementationTests.vb (2)
80Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 11085within:=test.ContainingType,
SymbolsTests\Metadata\MetadataMemberTests.vb (2)
271Assert.Equal(class1, p1.ContainingType) 382Assert.Equal(type1, p2.ContainingType)
SymbolsTests\Metadata\PE\LoadingEvents.vb (2)
256Dim [interface] = interfaceEvent.ContainingType 263Assert.Equal([interface], innerClassImplementingEvent.ContainingType.ConstructedFrom)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (5)
49Assert.Equal(C1, C1_T.ContainingType) 86Assert.Equal(C2, C2_T.ContainingType) 101Assert.Equal(C4, C4_T.ContainingType) 116Assert.Equal(TC2, TC2_T1.ContainingType) 120Assert.Equal(TC2, TC2_T2.ContainingType)
SymbolsTests\Metadata\PE\LoadingMethods.vb (2)
592Dim [interface] = interfaceMethod.ContainingType 601Assert.Equal([interface], innerClassImplementingMethod.ContainingType.ConstructedFrom)
SymbolsTests\Source\EventTests.vb (5)
2433Assert.Same(e1EventHandler.ContainingType, DirectCast(e1EventHandler.ContainingType.AssociatedSymbol, EventSymbol).Type) 2435Assert.True(e1EventHandler.ContainingType.IsImplicitlyDeclared) 2500Assert.Same(a, e1.Type.ContainingType) 2554Assert.Same(a, e1.Type.ContainingType)
SymbolsTests\Source\FieldTests.vb (4)
37Assert.Same(structC, field2.ContainingType) 108Assert.Same(classC, fieldP.ContainingType) 167Assert.Same(classD, fieldL.ContainingType) 213Assert.Same(type1, fieldC.ContainingType)
SymbolsTests\Source\ImplementsTests.vb (7)
2584Assert.Equal("A", implementedMethod.ContainingType.Name) 3496Assert.Equal(typeA, typeB.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3497Assert.Equal(typeA, typeB.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType) 3499Assert.Equal(typeA, typeC.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3500Assert.Equal(typeA, typeC.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType) 3502Assert.Equal(typeA, typeD.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3503Assert.Equal(typeD, typeD.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType)
SymbolsTests\Source\MethodTests.vb (10)
64Assert.Same(classC, ctor.ContainingType) 83Assert.Same(classC, m1.ContainingType) 191Assert.Same(moduleM, m1.ContainingType) 240Assert.Same(classC, m1.ContainingType) 259Assert.Same(classC, m2.ContainingType) 313Assert.Same(classC, m1.ContainingType) 333Assert.Same(moduleM, m2.ContainingType) 386Assert.Same(classC, m1.ContainingType) 411Assert.Same(classD, m2.ContainingType) 629Assert.Same(classC, m1.ContainingType)
SymbolsTests\Source\PropertyTests.vb (6)
2712Dim attributeType = attribute.AttributeConstructor.ContainingType 8103Assert.Same(type, accessor.ContainingType) 8128Dim containingType = [property].ContainingType 8130Assert.Same(containingType, accessor.ContainingType) 8209Assert.Equal(interfacePropertyGetter.ContainingType, getterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol()) 8214Assert.Equal(interfacePropertySetter.ContainingType, setterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol())
SymbolsTests\Source\TypeSubstitutionTests.vb (1)
57Assert.Equal(substFieldD.ContainingType, substFieldD.Type)
SymbolsTests\StaticAbstractMembersInInterfacesTests.vb (21)
128Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 174Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 220Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 894Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 895Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 896Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 943Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 944Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 945Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 992Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 993Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 994Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 1782Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1783Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1784Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1831Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1832Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1833Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1880Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1881Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1882Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod))