Ejemplo n.º 1
0
 private static Doc PrintCallingConvention(FunctionPointerCallingConventionSyntax node)
 {
     return(Doc.Concat(
                Token.Print(node.ManagedOrUnmanagedKeyword),
                node.UnmanagedCallingConventionList != null
             ? Doc.Concat(
                    Token.Print(node.UnmanagedCallingConventionList.OpenBracketToken),
                    SeparatedSyntaxList.Print(
                        node.UnmanagedCallingConventionList.CallingConventions,
                        o => Token.Print(o.Name),
                        " "
                        ),
                    Token.Print(node.UnmanagedCallingConventionList.CloseBracketToken)
                    )
             : Doc.Null
                ));
 }
 private Doc PrintCallingConvention(
     FunctionPointerCallingConventionSyntax node)
 {
     return(Concat(
                this.PrintSyntaxToken(node.ManagedOrUnmanagedKeyword),
                node.UnmanagedCallingConventionList != null
             ? Concat(
                    this.PrintSyntaxToken(
                        node.UnmanagedCallingConventionList.OpenBracketToken
                        ),
                    this.PrintSeparatedSyntaxList(
                        node.UnmanagedCallingConventionList.CallingConventions,
                        o => this.PrintSyntaxToken(o.Name),
                        " "
                        ),
                    this.PrintSyntaxToken(
                        node.UnmanagedCallingConventionList.CloseBracketToken
                        )
                    )
             : Doc.Null
                ));
 }
Ejemplo n.º 3
0
 public override void VisitFunctionPointerCallingConvention(FunctionPointerCallingConventionSyntax node) => base.VisitFunctionPointerCallingConvention(node);
Ejemplo n.º 4
0
 public override void VisitFunctionPointerCallingConvention(FunctionPointerCallingConventionSyntax node)
 {
     Log(node, "Unsupported Syntax !");
 }