public override VisualBasicSyntaxNode VisitInterfaceDeclaration(CSS.InterfaceDeclarationSyntax node)
            {
                var members = node.Members.Select(m => (StatementSyntax)m.Accept(this)).ToArray();
                var id      = SyntaxFactory.Identifier(node.Identifier.ValueText, SyntaxFacts.IsKeywordKind(node.Identifier.Kind()), node.Identifier.GetIdentifierText(), TypeCharacter.None);

                List <InheritsStatementSyntax>   inherits   = new List <InheritsStatementSyntax>();
                List <ImplementsStatementSyntax> implements = new List <ImplementsStatementSyntax>();

                ConvertBaseList(node, inherits, implements);

                return(SyntaxFactory.InterfaceBlock(
                           SyntaxFactory.InterfaceStatement(
                               SyntaxFactory.List(node.AttributeLists.Select(a => (AttributeListSyntax)a.Accept(this))),
                               ConvertModifiers(node.Modifiers),
                               id, (TypeParameterListSyntax)node.TypeParameterList?.Accept(this)
                               ),
                           SyntaxFactory.List(inherits),
                           SyntaxFactory.List(implements),
                           SyntaxFactory.List(members)
                           ));
            }
예제 #2
0
 public override void VisitInterfaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.InterfaceDeclarationSyntax node)
 {
     AddFolding(node.OpenBraceToken, node.CloseBraceToken, FoldType.Type);
     base.VisitInterfaceDeclaration(node);
 }
 public override void VisitInterfaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.InterfaceDeclarationSyntax node)
 {
     base.VisitInterfaceDeclaration(node);
     Colorize(node.Identifier, interfaceTypeColor);
 }
 public override void VisitInterfaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.InterfaceDeclarationSyntax node)
 {
     // nothing to analyze here
 }
예제 #5
0
 public override void VisitInterfaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.InterfaceDeclarationSyntax node)
 {
     cancellationToken.ThrowIfCancellationRequested();
     AddFolding(node.OpenBraceToken, node.CloseBraceToken, FoldType.Type);
     base.VisitInterfaceDeclaration(node);
 }