5 references to IsComment
Aspire.Hosting.CodeGeneration.Go.Tests (5)
GoDocCommentTests.cs (5)
163
if (!
IsComment
(line))
165
if (GetDeclaredName(line) is { } name && i > 0 &&
IsComment
(lines[i - 1]))
168
while (first > 0 &&
IsComment
(lines[first - 1]))
190
if (line.TrimStart().StartsWith("// Deprecated:", StringComparison.Ordinal) && i > 0 &&
IsComment
(lines[i - 1]) && lines[i - 1].Trim() != "//")
209
var commentedConstants = lines.Where((line, i) => i > 0 &&
IsComment
(lines[i - 1]) && Regex.IsMatch(line, "^\t\\w+ \\w+ = \"[^\"]*\"$")).Count();