Browse Source

Adding Doc Strings

Josh Engebretson 10 years ago
parent
commit
0b3b3b56b7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/ToolCore/JSBind/CSharp/CSFunctionWriter.cpp

+ 7 - 0
Source/ToolCore/JSBind/CSharp/CSFunctionWriter.cpp

@@ -712,6 +712,13 @@ void CSFunctionWriter::GenerateManagedSource(String& sourceOut)
     Indent();
     Indent();
 
+    if (function_->GetDocString().Length())
+    {
+        source += IndentLine("/// <summary>\n");
+        source += IndentLine("/// " + function_->GetDocString() + "\n");
+        source += IndentLine("/// </summary>\n");
+    }
+
     if (function_->IsConstructor())
         WriteManagedConstructor(source);
     else