public void VisitLineComment(AbsynLineComment comment) { foreach (var line in Lines(comment.Comment)) { writer.Indent(); writer.WriteComment($"// {line}"); writer.Terminate(); } }
public void CfAbsynComment_Multiline() { formatter.Indentation = 1; var cmt = new AbsynLineComment( @"First abstract syntax comment line Second abstract syntax comment line"); cmt.Accept(cf); var expected = @" // First abstract syntax comment line // Second abstract syntax comment line "; Assert.AreEqual(expected, sw.ToString()); }
public AbsynStatement VisitLineComment(AbsynLineComment comment) { return(comment); }
public void VisitLineComment(AbsynLineComment comment) { stms.Add(comment); }
public bool VisitLineComment(AbsynLineComment comment) { return(false); }
public void VisitLineComment(AbsynLineComment comment) { writer.WriteComment("// " + comment.Comment); writer.Terminate(); }