Example #1
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     foreach (var line in Lines(comment.Comment))
     {
         writer.Indent();
         writer.WriteComment($"// {line}");
         writer.Terminate();
     }
 }
Example #2
0
        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());
        }
Example #3
0
 public AbsynStatement VisitLineComment(AbsynLineComment comment)
 {
     return(comment);
 }
Example #4
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     stms.Add(comment);
 }
Example #5
0
 public bool VisitLineComment(AbsynLineComment comment)
 {
     return(false);
 }
Example #6
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     writer.WriteComment("// " + comment.Comment);
     writer.Terminate();
 }