ConvertTupleToStruct\VisualBasicConvertTupleToStructCodeRefactoringProvider.vb (1)
26TypeBlockSyntax,
InitializeParameter\VisualBasicAddParameterCheckCodeRefactoringProvider.vb (1)
17TypeBlockSyntax,
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (1)
17TypeBlockSyntax,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (19)
50If TypeOf destination Is TypeBlockSyntax Then
51Return DirectCast(destination, TypeBlockSyntax).GetInsertionIndices(cancellationToken)
97CheckDeclarationNode(Of TypeBlockSyntax)(destinationType)
98Return Cast(Of TDeclarationNode)(AddEventTo(Cast(Of TypeBlockSyntax)(destinationType), [event], options, availableIndices))
107CheckDeclarationNode(Of EnumBlockSyntax, TypeBlockSyntax, CompilationUnitSyntax)(destinationType)
110ElseIf TypeOf destinationType Is TypeBlockSyntax Then
111Return Cast(Of TDeclarationNode)(FieldGenerator.AddFieldTo(Cast(Of TypeBlockSyntax)(destinationType), field, options, availableIndices))
123CheckDeclarationNode(Of TypeBlockSyntax, CompilationUnitSyntax)(destinationType)
125If TypeOf destinationType Is TypeBlockSyntax Then
126Return Cast(Of TDeclarationNode)(PropertyGenerator.AddPropertyTo(Cast(Of TypeBlockSyntax)(destinationType), [property], options, availableIndices))
138CheckDeclarationNode(Of TypeBlockSyntax, CompilationUnitSyntax, NamespaceBlockSyntax)(destination)
146Dim typeDeclaration As TypeBlockSyntax = TryCast(destination, TypeBlockSyntax)
182CheckDeclarationNode(Of TypeBlockSyntax, NamespaceBlockSyntax, CompilationUnitSyntax)(destination)
183If TypeOf destination Is TypeBlockSyntax Then
184Return Cast(Of TDeclarationNode)(NamedTypeGenerator.AddNamedTypeTo(Me, Cast(Of TypeBlockSyntax)(destination), namedType, options, availableIndices, cancellationToken))
236CheckDeclarationNode(Of EnumBlockSyntax, TypeBlockSyntax, NamespaceBlockSyntax, CompilationUnitSyntax)(destination)
239ElseIf TypeOf destination Is TypeBlockSyntax Then
240Return Cast(Of TDeclarationNode)(Cast(Of TypeBlockSyntax)(destination).AddMembers(members.Cast(Of StatementSyntax).ToArray()))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (19)
50If TypeOf destination Is TypeBlockSyntax Then
51Return DirectCast(destination, TypeBlockSyntax).GetInsertionIndices(cancellationToken)
97CheckDeclarationNode(Of TypeBlockSyntax)(destinationType)
98Return Cast(Of TDeclarationNode)(AddEventTo(Cast(Of TypeBlockSyntax)(destinationType), [event], options, availableIndices))
107CheckDeclarationNode(Of EnumBlockSyntax, TypeBlockSyntax, CompilationUnitSyntax)(destinationType)
110ElseIf TypeOf destinationType Is TypeBlockSyntax Then
111Return Cast(Of TDeclarationNode)(FieldGenerator.AddFieldTo(Cast(Of TypeBlockSyntax)(destinationType), field, options, availableIndices))
123CheckDeclarationNode(Of TypeBlockSyntax, CompilationUnitSyntax)(destinationType)
125If TypeOf destinationType Is TypeBlockSyntax Then
126Return Cast(Of TDeclarationNode)(PropertyGenerator.AddPropertyTo(Cast(Of TypeBlockSyntax)(destinationType), [property], options, availableIndices))
138CheckDeclarationNode(Of TypeBlockSyntax, CompilationUnitSyntax, NamespaceBlockSyntax)(destination)
146Dim typeDeclaration As TypeBlockSyntax = TryCast(destination, TypeBlockSyntax)
182CheckDeclarationNode(Of TypeBlockSyntax, NamespaceBlockSyntax, CompilationUnitSyntax)(destination)
183If TypeOf destination Is TypeBlockSyntax Then
184Return Cast(Of TDeclarationNode)(NamedTypeGenerator.AddNamedTypeTo(Me, Cast(Of TypeBlockSyntax)(destination), namedType, options, availableIndices, cancellationToken))
236CheckDeclarationNode(Of EnumBlockSyntax, TypeBlockSyntax, NamespaceBlockSyntax, CompilationUnitSyntax)(destination)
239ElseIf TypeOf destination Is TypeBlockSyntax Then
240Return Cast(Of TDeclarationNode)(Cast(Of TypeBlockSyntax)(destination).AddMembers(members.Cast(Of StatementSyntax).ToArray()))