4 instantiations of InheritsStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
2412
Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.
InheritsStatementSyntax
(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
1756
Return New
InheritsStatementSyntax
(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newInheritsKeyword, newTypes.Node)
7412
Return New
InheritsStatementSyntax
(SyntaxKind.InheritsStatement, Nothing, Nothing, DirectCast(inheritsKeyword.Node, InternalSyntax.KeywordSyntax), types.Node)
Generated\Syntax.xml.Syntax.Generated.vb (1)
2798
Me.
New
(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.InheritsStatementSyntax(kind, errors, annotations, inheritsKeyword, if(types IsNot Nothing, types.Green, Nothing)), Nothing, 0)
93 references to InheritsStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (64)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
166
Public Overrides Function VisitInheritsStatement(inheritsSyntax As
InheritsStatementSyntax
) As Binder
Generated\Syntax.xml.Main.Generated.vb (14)
59
Public Overridable Function VisitInheritsStatement(ByVal node As
InheritsStatementSyntax
) As TResult
794
Public Overridable Sub VisitInheritsStatement(ByVal node As
InheritsStatementSyntax
)
1747
Public Overrides Function VisitInheritsStatement(ByVal node As
InheritsStatementSyntax
) As SyntaxNode
7063
Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endModuleStatement As EndBlockStatementSyntax) As ModuleBlockSyntax
7100
Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As ModuleBlockSyntax
7136
Public Shared Function StructureBlock(structureStatement As StructureStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endStructureStatement As EndBlockStatementSyntax) As StructureBlockSyntax
7173
Public Shared Function StructureBlock(structureStatement As StructureStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As StructureBlockSyntax
7209
Public Shared Function InterfaceBlock(interfaceStatement As InterfaceStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endInterfaceStatement As EndBlockStatementSyntax) As InterfaceBlockSyntax
7246
Public Shared Function InterfaceBlock(interfaceStatement As InterfaceStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As InterfaceBlockSyntax
7282
Public Shared Function ClassBlock(classStatement As ClassStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endClassStatement As EndBlockStatementSyntax) As ClassBlockSyntax
7319
Public Shared Function ClassBlock(classStatement As ClassStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As ClassBlockSyntax
7406
Public Shared Function InheritsStatement(inheritsKeyword As SyntaxToken, types As SeparatedSyntaxList(Of TypeSyntax)) As
InheritsStatementSyntax
7422
Public Shared Function InheritsStatement(types As SeparatedSyntaxList(Of TypeSyntax)) As
InheritsStatementSyntax
7433
Public Shared Function InheritsStatement(ParamArray types As TypeSyntax()) As
InheritsStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (43)
1513
Public ReadOnly Property [Inherits] As SyntaxList(Of
InheritsStatementSyntax
)
1519
Friend Overridable Function GetInheritsCore() As SyntaxList(Of
InheritsStatementSyntax
)
1521
Return new SyntaxList(Of
InheritsStatementSyntax
)(listNode)
1529
Public Function WithInherits([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
1532
Friend MustOverride Function WithInheritsCore([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
1534
Public Shadows Function AddInherits(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
1537
Friend MustOverride Function AddInheritsCore(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
1652
Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of
InheritsStatementSyntax
)
1655
Return new SyntaxList(Of
InheritsStatementSyntax
)(listNode)
1659
Friend Overrides Function GetInheritsCore() As SyntaxList(Of
InheritsStatementSyntax
)
1663
Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
1672
Public Shadows Function WithInherits([inherits] as SyntaxList(Of
InheritsStatementSyntax
)) As ModuleBlockSyntax
1676
Public Shadows Function AddInherits(ParamArray items As
InheritsStatementSyntax
()) As ModuleBlockSyntax
1680
Friend Overrides Function AddInheritsCore(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
1840
Public Function Update(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endModuleStatement As EndBlockStatementSyntax) As ModuleBlockSyntax
1904
Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of
InheritsStatementSyntax
)
1907
Return new SyntaxList(Of
InheritsStatementSyntax
)(listNode)
1911
Friend Overrides Function GetInheritsCore() As SyntaxList(Of
InheritsStatementSyntax
)
1915
Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
1924
Public Shadows Function WithInherits([inherits] as SyntaxList(Of
InheritsStatementSyntax
)) As StructureBlockSyntax
1928
Public Shadows Function AddInherits(ParamArray items As
InheritsStatementSyntax
()) As StructureBlockSyntax
1932
Friend Overrides Function AddInheritsCore(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
2092
Public Function Update(structureStatement As StructureStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endStructureStatement As EndBlockStatementSyntax) As StructureBlockSyntax
2156
Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of
InheritsStatementSyntax
)
2159
Return new SyntaxList(Of
InheritsStatementSyntax
)(listNode)
2163
Friend Overrides Function GetInheritsCore() As SyntaxList(Of
InheritsStatementSyntax
)
2167
Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
2176
Public Shadows Function WithInherits([inherits] as SyntaxList(Of
InheritsStatementSyntax
)) As InterfaceBlockSyntax
2180
Public Shadows Function AddInherits(ParamArray items As
InheritsStatementSyntax
()) As InterfaceBlockSyntax
2184
Friend Overrides Function AddInheritsCore(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
2344
Public Function Update(interfaceStatement As InterfaceStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endInterfaceStatement As EndBlockStatementSyntax) As InterfaceBlockSyntax
2408
Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of
InheritsStatementSyntax
)
2411
Return new SyntaxList(Of
InheritsStatementSyntax
)(listNode)
2415
Friend Overrides Function GetInheritsCore() As SyntaxList(Of
InheritsStatementSyntax
)
2419
Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of
InheritsStatementSyntax
)) As TypeBlockSyntax
2428
Public Shadows Function WithInherits([inherits] as SyntaxList(Of
InheritsStatementSyntax
)) As ClassBlockSyntax
2432
Public Shadows Function AddInherits(ParamArray items As
InheritsStatementSyntax
()) As ClassBlockSyntax
2436
Friend Overrides Function AddInheritsCore(ParamArray items As
InheritsStatementSyntax
()) As TypeBlockSyntax
2596
Public Function Update(classStatement As ClassStatementSyntax, [inherits] As SyntaxList(of
InheritsStatementSyntax
), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax), endClassStatement As EndBlockStatementSyntax) As ClassBlockSyntax
2815
Public Shadows Function WithInheritsKeyword(inheritsKeyword as SyntaxToken) As
InheritsStatementSyntax
2836
Public Shadows Function WithTypes(types as SeparatedSyntaxList(Of TypeSyntax)) As
InheritsStatementSyntax
2840
Public Shadows Function AddTypes(ParamArray items As TypeSyntax()) As
InheritsStatementSyntax
2881
Public Function Update(inheritsKeyword As SyntaxToken, types As SeparatedSyntaxList(Of TypeSyntax)) As
InheritsStatementSyntax
Symbols\Source\SourceNamedTypeSymbol.vb (5)
1070
Private Function ValidateClassBase(inheritsSyntax As SyntaxList(Of
InheritsStatementSyntax
),
1087
Dim inheritsDeclaration = DirectCast(baseDeclaration,
InheritsStatementSyntax
)
1149
Private Sub ValidateInheritedInterfaces(baseSyntax As SyntaxList(Of
InheritsStatementSyntax
),
1166
Dim types = DirectCast(baseDeclaration,
InheritsStatementSyntax
).Types
1336
If(getInherits, DirectCast(t,
InheritsStatementSyntax
).Types, DirectCast(t, ImplementsStatementSyntax).Types)
Syntax\SyntaxFactory.vb (1)
419
Public Shared Function TypeBlock(ByVal blockKind As SyntaxKind, ByVal begin As TypeStatementSyntax, Optional ByVal [inherits] As SyntaxList(Of
InheritsStatementSyntax
) = Nothing, Optional ByVal [implements] As SyntaxList(Of ImplementsStatementSyntax) = Nothing, Optional ByVal members As SyntaxList(Of StatementSyntax) = Nothing, Optional ByVal [end] As EndBlockStatementSyntax = Nothing) As TypeBlockSyntax
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
SyntaxTreeExtensions.vb (2)
512
token.IsChildToken(Of
InheritsStatementSyntax
)(Function(node) node.InheritsKeyword) OrElse
513
token.IsChildSeparatorToken(Of
InheritsStatementSyntax
, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
TypeBlockSyntaxExtensions.vb (1)
61
Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of
InheritsStatementSyntax
)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
50
Dim inheritsStatement = targetToken.GetAncestor(Of
InheritsStatementSyntax
)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
58
If targetToken.IsChildToken(Of
InheritsStatementSyntax
)(Function(n) n.InheritsKeyword) OrElse
GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
42
Dim baseList = DirectCast(type.Parent,
InheritsStatementSyntax
)
GenerateType\VisualBasicGenerateTypeService.vb (1)
544
If TypeOf node Is
InheritsStatementSyntax
Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
10296
Private Shared Function GenerateRedInheritsStatement() As
InheritsStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\NamedTypeGenerator.vb (1)
204
Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of
InheritsStatementSyntax
)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
3598
Private Shared Function GetInherits(declaration As SyntaxNode) As SyntaxList(Of
InheritsStatementSyntax
)
3609
Private Shared Function WithInherits(declaration As SyntaxNode, list As SyntaxList(Of
InheritsStatementSyntax
)) As SyntaxNode
3930
Dim inh = DirectCast(parent,
InheritsStatementSyntax
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (2)
512
token.IsChildToken(Of
InheritsStatementSyntax
)(Function(node) node.InheritsKeyword) OrElse
513
token.IsChildSeparatorToken(Of
InheritsStatementSyntax
, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
425
If token.IsChildToken(Of
InheritsStatementSyntax
)(Function(n) n.InheritsKeyword) Then
430
token.Parent?.FirstAncestorOrSelf(Of
InheritsStatementSyntax
) IsNot Nothing
TypeBlockSyntaxExtensions.vb (1)
61
Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of
InheritsStatementSyntax
)
Microsoft.VisualStudio.LanguageServices.VisualBasic (12)
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (2)
939
Private Function CompareInherits(oldInherits As
InheritsStatementSyntax
, newInherits As
InheritsStatementSyntax
, newNodeParent As SyntaxNode, eventQueue As CodeModelEventQueue) As Boolean
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (4)
119
Return GetInheritsStatementStartPoint(text, DirectCast(node,
InheritsStatementSyntax
), part)
209
Return GetInheritsStatementEndPoint(text, DirectCast(node,
InheritsStatementSyntax
), part)
1335
Private Shared Function GetInheritsStatementStartPoint(text As SourceText, inheritsStatement As
InheritsStatementSyntax
, part As EnvDTE.vsCMPart) As VirtualTreePoint?
1361
Private Shared Function GetInheritsStatementEndPoint(text As SourceText, inheritsStatement As
InheritsStatementSyntax
, part As EnvDTE.vsCMPart) As VirtualTreePoint?
CodeModel\VisualBasicCodeModelService.vb (5)
944
Return DirectCast(node,
InheritsStatementSyntax
).InheritsKeyword.ToString()
1215
For Each [inherits] As
InheritsStatementSyntax
In GetInheritsNodes(parentNode)
1724
Debug.Assert(TypeOf inheritsNode Is
InheritsStatementSyntax
)
1726
namespaceName = DirectCast(inheritsNode,
InheritsStatementSyntax
).Types.ToString()
1729
For Each [inherits] As
InheritsStatementSyntax
In GetInheritsNodes(parentNode)
Help\VisualBasicHelpContextService.Visitor.vb (1)
336
Public Overrides Sub VisitInheritsStatement(node As
InheritsStatementSyntax
)