Skip to content

Commit 2464a50

Browse files
committed
Added a comment to GenerateOneFromStringAsync.
1 parent b8e267b commit 2464a50

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

CSharpToJavaScript/CSTOJS.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
using System.Text;
1212
using System.Runtime.CompilerServices;
1313
using System;
14-
using System.Reflection.Metadata;
15-
using System.Collections.Immutable;
1614

1715
namespace CSharpToJavaScript
1816
{
@@ -112,7 +110,13 @@ public async Task GenerateOneAsync(string path, string? filename = null)
112110
Log($"--- Path: {pathCombined}");
113111
Log($"--- --- ---");
114112
}
115-
113+
/// <summary>
114+
/// Method for generating from string.
115+
/// </summary>
116+
/// <param name="csstring">CSharp string.</param>
117+
/// <param name="references">Needed if you don't have access to files. Like if Blazor WebAssembly, because Assembly.location is empty.</param>
118+
/// <returns>JS <see cref="StringBuilder"/></returns>
119+
/// <exception cref="ArgumentNullException"></exception>
116120
public async Task<StringBuilder> GenerateOneFromStringAsync(string csstring, List<MetadataReference>? references = null)
117121
{
118122
if (csstring == null)
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace CSharpToJavaScript.Utils
1+
namespace CSharpToJavaScript.Utils
82
{
93
public class Unsupported
104
{
5+
116
}
127
}

0 commit comments

Comments
 (0)