Example #1
0
        /// <summary>
        /// Returns a string for a return tag if one is necessary.
        /// </summary>
        /// <param name="position">Position of the last slash in the triple slash comment</param>
        /// <returns>Return tag line as a string.</returns>
        private string getReturnTag(int position)
        {
            string result       = "";
            bool   shouldCreate = StubUtils.ShouldCreateReturnTag(position, this._view.TextSnapshot);

            if (shouldCreate)
            {
                result = NewLine() + createReturnString();
            }

            return(result);
        }
Example #2
0
        /// <summary>
        /// Returns a string for a return tag if one is necessary.
        /// </summary>
        /// <param name="position">Position of the last slash in the triple slash comment</param>
        /// <returns>Return tag line as a string.</returns>
        private string getReturnTag(int position)
        {
            string result       = "";
            bool   shouldCreate = StubUtils.ShouldCreateReturnTag(position, this._view.TextSnapshot, true);

            if (shouldCreate)
            {
                result = NewLine() + "@returns";

                if (contentType.Equals("JavaScript"))
                {
                    // Add {type} for JavaScript doc.
                    result += " {type} ";
                }
            }

            return(result);
        }