88 references to InheritsStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (64)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
165
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)
1077
Private Function ValidateClassBase(inheritsSyntax As SyntaxList(Of
InheritsStatementSyntax
),
1094
Dim inheritsDeclaration = DirectCast(baseDeclaration,
InheritsStatementSyntax
)
1156
Private Sub ValidateInheritedInterfaces(baseSyntax As SyntaxList(Of
InheritsStatementSyntax
),
1173
Dim types = DirectCast(baseDeclaration,
InheritsStatementSyntax
).Types
1343
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.Analyzers (1)
BasicSymbolIsBannedInAnalyzersAnalyzer.vb (1)
39
Return CType(syntaxNode,
InheritsStatementSyntax
).Types
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
42
Dim baseList = DirectCast(type.Parent,
InheritsStatementSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
204
Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of
InheritsStatementSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512
token.IsChildToken(Of
InheritsStatementSyntax
)(Function(node) node.InheritsKeyword) OrElse
513
token.IsChildSeparatorToken(Of
InheritsStatementSyntax
, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\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)
55
If targetToken.IsChildToken(Of
InheritsStatementSyntax
)(Function(n) n.InheritsKeyword) OrElse
GenerateType\VisualBasicGenerateTypeService.vb (1)
535
If TypeOf expression.Parent Is
InheritsStatementSyntax
Then
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
42
Dim baseList = DirectCast(type.Parent,
InheritsStatementSyntax
)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\BasicDetectPreviewFeatureAnalyzer.vb (1)
81
Private Function TryGetPreviewInterfaceNodeForClassOrStructImplementingPreviewInterface(baseListTypes As SyntaxList(Of
InheritsStatementSyntax
), previewInterfaceSymbol As ISymbol, ByRef previewInterfaceNode As SyntaxNode) As Boolean
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
3279
Private Shared Function GetInherits(declaration As SyntaxNode) As SyntaxList(Of
InheritsStatementSyntax
)
3290
Private Shared Function WithInherits(declaration As SyntaxNode, list As SyntaxList(Of
InheritsStatementSyntax
)) As SyntaxNode
3611
Dim inh = DirectCast(parent,
InheritsStatementSyntax
)
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
431
If token.IsChildToken(Of
InheritsStatementSyntax
)(Function(n) n.InheritsKeyword) Then
436
token.Parent?.FirstAncestorOrSelf(Of
InheritsStatementSyntax
) IsNot Nothing
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
204
Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of
InheritsStatementSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512
token.IsChildToken(Of
InheritsStatementSyntax
)(Function(node) node.InheritsKeyword) OrElse
513
token.IsChildSeparatorToken(Of
InheritsStatementSyntax
, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (1)
61
Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of
InheritsStatementSyntax
)
Roslyn.Diagnostics.VisualBasic.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
204
Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of
InheritsStatementSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512
token.IsChildToken(Of
InheritsStatementSyntax
)(Function(node) node.InheritsKeyword) OrElse
513
token.IsChildSeparatorToken(Of
InheritsStatementSyntax
, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (1)
61
Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of
InheritsStatementSyntax
)