Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

string NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::MakeMethodDeclaration ( XPathNavigator  nav,
string  parentTypeName 
) [inline, private]

Make a string for a method (including constructor) declaration, such as "public bool Foo(int x, int y, string s)".

Parameters:
nav Navigator to the Method's node.
parentTypeName The name of the Type which contains this method.
Returns:
The declaration string.

Definition at line 1598 of file LinearHtmlDocumenter.cs.

            {
                  string memberAccess = nav.GetAttribute("access", "");
                  string memberName = nav.GetAttribute("name", "");
                  string returnType = ToSimpleType(nav.GetAttribute("returnType", ""));

                  string args = MakeMethodParametersString(nav);
                  string nameString;
                  if (memberName.Equals(".ctor"))
                  {
                        nameString = KeyWrap(ToAccessDeclaration(memberAccess) + " " 
                              + parentTypeName + "(" + args + ")");
                  }
                  else
                  {
                        nameString = KeyWrap(ToAccessDeclaration(memberAccess) + " " 
                              + TypeRefWrap(returnType) + " " 
                              + memberName + "(" + args + ")");
                  }

                  return(nameString);
            }


Generated by  Doxygen 1.6.0   Back to index