Example #1
0
        public static string?From(ISymbol symbol)
        {
            var node = RQNodeBuilder.Build(symbol);

            if (node == null)
            {
                return(null);
            }

            return(ParenthesesTreeWriter.ToParenthesesFormat(node.ToSimpleTree()));
        }
Example #2
0
        /// <summary>
        /// Returns an RQName for the given symbol, or <code>null</code>if the symbol cannot be represented by an RQName.
        /// </summary>
        /// <param name="symbol">The symbol to build an RQName for.</param>
        /// <returns>A string suitable to pass as the pszRQName argument to methods in <see cref="IVsRefactorNotify"/>
        /// and <see cref="IVsSymbolicNavigationNotify"/>.</returns>
        public static string From(ISymbol symbol)
        {
            var node = RQNodeBuilder.Build(symbol);

            return((node != null) ? ParenthesesTreeWriter.ToParenthesesFormat(node.ToSimpleTree()) : null);
        }