Example #1
0
        static void AddParameterList(TextBlock t, SyntaxNode node)
        {
            ParameterListSyntax p = null;

            if (node is BaseMethodDeclarationSyntax)
            {
                p = ((BaseMethodDeclarationSyntax)node).ParameterList;
            }
            else if (node.IsKind(SyntaxKind.DelegateDeclaration))
            {
                p = ((DelegateDeclarationSyntax)node).ParameterList;
            }
            else if (node is OperatorDeclarationSyntax)
            {
                p = ((OperatorDeclarationSyntax)node).ParameterList;
            }
            if (p != null)
            {
                var useParamName = Config.Instance.NaviBarOptions.MatchFlags(NaviBarOptions.ParameterListShowParamName);
                t.Append(p.GetParameterListSignature(useParamName), ThemeHelper.SystemGrayTextBrush);
            }
        }