Skip to content

Commit f02b336

Browse files
committed
Don't parse methods for now logic is not yet fully formed.
1 parent b16a937 commit f02b336

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Generator/DefinitionLoader.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -362,26 +362,26 @@ private static string TrimHTML(string source)
362362
private static async Task<List<MethodDefinition>> ParseMethods(Uri classUri, string methodBlock)
363363
{
364364
List<MethodDefinition> result = [];
365-
var tBodyIndex = methodBlock.IndexOf("<tbody");
366-
foreach (Match methodRow in TableRowRegex.Matches(methodBlock[tBodyIndex..]))
367-
{
368-
List<string> cells = [.. TableCellRegex.Matches(methodRow.Groups[1].Value).Select(c => c.Groups[1].Value)];
369-
if (cells.Count != 2)
370-
{
371-
ErrorReporter.Report($"Found unexpected number({cells.Count}) of cells in method Row.");
372-
}
373-
374-
var nameCell = cells[0];
375-
var linkMatch = LinkRegex.Match(nameCell);
376-
if (!linkMatch.Success)
377-
{
378-
continue;
379-
}
380-
381-
var name = TrimHTML(nameCell);
382-
var description = TrimHTML(cells[1]);
383-
var methodPageContent = await GetPageContentsAsync(new Uri(classUri, linkMatch.Groups[1].Value));
384-
}
365+
//var tBodyIndex = methodBlock.IndexOf("<tbody");
366+
//foreach (Match methodRow in TableRowRegex.Matches(methodBlock[tBodyIndex..]))
367+
//{
368+
// List<string> cells = [..TableCellRegex.Matches(methodRow.Groups[1].Value).Select(c => c.Groups[1].Value)];
369+
// if (cells.Count != 2)
370+
// {
371+
// ErrorReporter.Report($"Found unexpected number({cells.Count}) of cells in method Row.");
372+
// }
373+
374+
// var nameCell = cells[0];
375+
// var linkMatch = LinkRegex.Match(nameCell);
376+
// if (!linkMatch.Success)
377+
// {
378+
// continue;
379+
// }
380+
381+
// var name = TrimHTML(nameCell);
382+
// var description = TrimHTML(cells[1]);
383+
// var methodPageContent = await GetPageContentsAsync(new Uri(classUri, linkMatch.Groups[1].Value));
384+
//}
385385

386386
return result;
387387
}

0 commit comments

Comments
 (0)