1- global using global ::System ;
2-
3-
4-
5-
6- using System . Reflection ;
1+ using System . Reflection ;
72using System . Diagnostics ;
83using System . IO ;
94using System . Collections . Generic ;
1611
1712namespace CSharpToJavaScript
1813{
19- public class CSTOJS
14+ /// <summary>
15+ /// Main type for CSharpToJavaScript.
16+ /// </summary>
17+ public class CSTOJS
2018 {
2119 public static SemanticModel Model { get ; set ; }
2220
@@ -26,6 +24,10 @@ public class CSTOJS
2624
2725 private Walker _Walker = new ( ) ;
2826
27+ /// <summary>
28+ /// New instance of <see cref="CSTOJS"/> with default options, see <see cref="CSTOJSOptions"/>.
29+ /// </summary>
30+ /// <param name="assembly">Assembly of a project, get by <see cref="Assembly.GetExecutingAssembly" /></param>
2931 public CSTOJS ( Assembly assembly )
3032 {
3133 _Assembly = assembly ;
@@ -42,6 +44,11 @@ public CSTOJS(Assembly assembly)
4244 Trace . Listeners . Add ( new ConsoleTraceListener ( ) ) ;
4345 }
4446
47+ /// <summary>
48+ ///
49+ /// </summary>
50+ /// <param name="assembly">Assembly of a project, get by <see cref="Assembly.GetExecutingAssembly" /></param>
51+ /// <param name="options">Options of <see cref="CSTOJS"/>, see <see cref="CSTOJSOptions"/>.</param>
4552 public CSTOJS ( Assembly assembly , CSTOJSOptions options )
4653 {
4754 _Assembly = assembly ;
@@ -60,6 +67,11 @@ public CSTOJS(Assembly assembly, CSTOJSOptions options)
6067 Trace . Listeners . Add ( new ConsoleTraceListener ( ) ) ;
6168 }
6269
70+ /// <summary>
71+ /// Method for generating js file.
72+ /// </summary>
73+ /// <param name="path">Full path to cs file.</param>
74+ /// <returns></returns>
6375 public async Task Generate2Async ( string path )
6476 {
6577 string fileCS = await File . ReadAllTextAsync ( path ) ;
0 commit comments