示例#1
0
 public override void OnArgument(DOM.Argument pair)
 {
     PrintNodeName(pair);
     PrintNodeStart(pair);
     base.OnArgument(pair);
     PrintNodeEnd(pair);
 }
示例#2
0
        public override void OnArgument(DOM.Argument node)
        {
            PrintNodeStart(node);
            if (node.ObjectValue is Node)
            {
                _sb.Append("= ");
                _valueNodeExpected.Push(true);
                Visit(node.ObjectValue as Node);
                _valueNodeExpected.Pop();
                _sb.AppendLine();
            }
            else if (node.Value != null)
            {
                _sb.Append("= `");
                _sb.Append(node.Value);
                _sb.Append("`");
                _sb.AppendLine();
            }
            if (node.Entities.Count > 0)
            {
                _sb.AppendLine(":");
                _indent++;
            }
            base.OnArgument(node);

            if (node.Entities.Count > 0)
            {
                _indent--;
            }
        }
 public override void Visit(DOM.Argument argument)
 {
     ProcessInterpolation((IPairWithInterpolation)argument);
     base.Visit(argument);
     Visit(argument.PairValue);
 }