88 references to InheritsStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (64)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
165Public Overrides Function VisitInheritsStatement(inheritsSyntax As InheritsStatementSyntax) As Binder
Generated\Syntax.xml.Main.Generated.vb (14)
59Public Overridable Function VisitInheritsStatement(ByVal node As InheritsStatementSyntax) As TResult 794Public Overridable Sub VisitInheritsStatement(ByVal node As InheritsStatementSyntax) 1747Public Overrides Function VisitInheritsStatement(ByVal node As InheritsStatementSyntax) As SyntaxNode 7063Public 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 7100Public Shared Function ModuleBlock(moduleStatement As ModuleStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As ModuleBlockSyntax 7136Public 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 7173Public Shared Function StructureBlock(structureStatement As StructureStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As StructureBlockSyntax 7209Public 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 7246Public Shared Function InterfaceBlock(interfaceStatement As InterfaceStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As InterfaceBlockSyntax 7282Public 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 7319Public Shared Function ClassBlock(classStatement As ClassStatementSyntax, [inherits] As SyntaxList(of InheritsStatementSyntax), [implements] As SyntaxList(of ImplementsStatementSyntax), members As SyntaxList(of StatementSyntax)) As ClassBlockSyntax 7406Public Shared Function InheritsStatement(inheritsKeyword As SyntaxToken, types As SeparatedSyntaxList(Of TypeSyntax)) As InheritsStatementSyntax 7422Public Shared Function InheritsStatement(types As SeparatedSyntaxList(Of TypeSyntax)) As InheritsStatementSyntax 7433Public Shared Function InheritsStatement(ParamArray types As TypeSyntax()) As InheritsStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (43)
1513Public ReadOnly Property [Inherits] As SyntaxList(Of InheritsStatementSyntax) 1519Friend Overridable Function GetInheritsCore() As SyntaxList(Of InheritsStatementSyntax) 1521Return new SyntaxList(Of InheritsStatementSyntax)(listNode) 1529Public Function WithInherits([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 1532Friend MustOverride Function WithInheritsCore([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 1534Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 1537Friend MustOverride Function AddInheritsCore(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 1652Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of InheritsStatementSyntax) 1655Return new SyntaxList(Of InheritsStatementSyntax)(listNode) 1659Friend Overrides Function GetInheritsCore() As SyntaxList(Of InheritsStatementSyntax) 1663Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 1672Public Shadows Function WithInherits([inherits] as SyntaxList(Of InheritsStatementSyntax)) As ModuleBlockSyntax 1676Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As ModuleBlockSyntax 1680Friend Overrides Function AddInheritsCore(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 1840Public 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 1904Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of InheritsStatementSyntax) 1907Return new SyntaxList(Of InheritsStatementSyntax)(listNode) 1911Friend Overrides Function GetInheritsCore() As SyntaxList(Of InheritsStatementSyntax) 1915Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 1924Public Shadows Function WithInherits([inherits] as SyntaxList(Of InheritsStatementSyntax)) As StructureBlockSyntax 1928Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As StructureBlockSyntax 1932Friend Overrides Function AddInheritsCore(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 2092Public 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 2156Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of InheritsStatementSyntax) 2159Return new SyntaxList(Of InheritsStatementSyntax)(listNode) 2163Friend Overrides Function GetInheritsCore() As SyntaxList(Of InheritsStatementSyntax) 2167Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 2176Public Shadows Function WithInherits([inherits] as SyntaxList(Of InheritsStatementSyntax)) As InterfaceBlockSyntax 2180Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As InterfaceBlockSyntax 2184Friend Overrides Function AddInheritsCore(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 2344Public 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 2408Public Shadows ReadOnly Property [Inherits] As SyntaxList(Of InheritsStatementSyntax) 2411Return new SyntaxList(Of InheritsStatementSyntax)(listNode) 2415Friend Overrides Function GetInheritsCore() As SyntaxList(Of InheritsStatementSyntax) 2419Friend Overrides Function WithInheritsCore([inherits] As SyntaxList(Of InheritsStatementSyntax)) As TypeBlockSyntax 2428Public Shadows Function WithInherits([inherits] as SyntaxList(Of InheritsStatementSyntax)) As ClassBlockSyntax 2432Public Shadows Function AddInherits(ParamArray items As InheritsStatementSyntax()) As ClassBlockSyntax 2436Friend Overrides Function AddInheritsCore(ParamArray items As InheritsStatementSyntax()) As TypeBlockSyntax 2596Public 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 2815Public Shadows Function WithInheritsKeyword(inheritsKeyword as SyntaxToken) As InheritsStatementSyntax 2836Public Shadows Function WithTypes(types as SeparatedSyntaxList(Of TypeSyntax)) As InheritsStatementSyntax 2840Public Shadows Function AddTypes(ParamArray items As TypeSyntax()) As InheritsStatementSyntax 2881Public Function Update(inheritsKeyword As SyntaxToken, types As SeparatedSyntaxList(Of TypeSyntax)) As InheritsStatementSyntax
Symbols\Source\SourceNamedTypeSymbol.vb (5)
1077Private Function ValidateClassBase(inheritsSyntax As SyntaxList(Of InheritsStatementSyntax), 1094Dim inheritsDeclaration = DirectCast(baseDeclaration, InheritsStatementSyntax) 1156Private Sub ValidateInheritedInterfaces(baseSyntax As SyntaxList(Of InheritsStatementSyntax), 1173Dim types = DirectCast(baseDeclaration, InheritsStatementSyntax).Types 1343If(getInherits, DirectCast(t, InheritsStatementSyntax).Types, DirectCast(t, ImplementsStatementSyntax).Types)
Syntax\SyntaxFactory.vb (1)
419Public 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)
39Return CType(syntaxNode, InheritsStatementSyntax).Types
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
42Dim baseList = DirectCast(type.Parent, InheritsStatementSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
204Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of InheritsStatementSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512token.IsChildToken(Of InheritsStatementSyntax)(Function(node) node.InheritsKeyword) OrElse 513token.IsChildSeparatorToken(Of InheritsStatementSyntax, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (1)
61Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of InheritsStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
50Dim inheritsStatement = targetToken.GetAncestor(Of InheritsStatementSyntax)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
55If targetToken.IsChildToken(Of InheritsStatementSyntax)(Function(n) n.InheritsKeyword) OrElse
GenerateType\VisualBasicGenerateTypeService.vb (1)
535If TypeOf expression.Parent Is InheritsStatementSyntax Then
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
42Dim baseList = DirectCast(type.Parent, InheritsStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\BasicDetectPreviewFeatureAnalyzer.vb (1)
81Private 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)
3279Private Shared Function GetInherits(declaration As SyntaxNode) As SyntaxList(Of InheritsStatementSyntax) 3290Private Shared Function WithInherits(declaration As SyntaxNode, list As SyntaxList(Of InheritsStatementSyntax)) As SyntaxNode 3611Dim inh = DirectCast(parent, InheritsStatementSyntax)
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
431If token.IsChildToken(Of InheritsStatementSyntax)(Function(n) n.InheritsKeyword) Then 436token.Parent?.FirstAncestorOrSelf(Of InheritsStatementSyntax) IsNot Nothing
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
204Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of InheritsStatementSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512token.IsChildToken(Of InheritsStatementSyntax)(Function(node) node.InheritsKeyword) OrElse 513token.IsChildSeparatorToken(Of InheritsStatementSyntax, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (1)
61Private 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)
204Private Function GenerateInheritsStatements(namedType As INamedTypeSymbol) As SyntaxList(Of InheritsStatementSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (2)
512token.IsChildToken(Of InheritsStatementSyntax)(Function(node) node.InheritsKeyword) OrElse 513token.IsChildSeparatorToken(Of InheritsStatementSyntax, TypeSyntax)(Function(baseDeclaration) baseDeclaration.Types) OrElse
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (1)
61Private Function EnsureProperInherits(destinationType As TypeBlockSyntax) As SyntaxList(Of InheritsStatementSyntax)