private string TransformComment(OneLineComment node) { if (_deleteComment) { return string.Empty; } StringBuilder sb = new StringBuilder(); if (node.BeforeNode.GetType() == typeof (WhiteSpace)) { // コメントの前の意図的なインデントや空白を残す sb.Append(node.BeforeNode.Value); } sb.Append(node.Value); return sb.ToString(); }
public virtual bool Visit(OneLineComment node) { return true; }
public override bool Visit(OneLineComment node) { AddResultSql(node.Value); return base.Visit(node); }
public override bool Transform(OneLineComment node) { node.Value = TransformComment(node); return base.Transform(node); }
public virtual bool Transform(OneLineComment node) { return true; }