public void write_compiler_directive_if(compiler_directive_if _compiler_directive_if)
		{
			write_compiler_directive(_compiler_directive_if);
			if (_compiler_directive_if.if_part == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_compiler_directive_if.if_part.visit(this);
			}
			if (_compiler_directive_if.elseif_part == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_compiler_directive_if.elseif_part.visit(this);
			}
		}
        public override void visit(compiler_directive_if _compiler_directive_if)
        {

        }
		public void visit(compiler_directive_if _compiler_directive_if)
		{
			bw.Write((Int16)172);
			write_compiler_directive_if(_compiler_directive_if);
		}
		public void read_compiler_directive_if(compiler_directive_if _compiler_directive_if)
		{
			read_compiler_directive(_compiler_directive_if);
			_compiler_directive_if.if_part = _read_node() as compiler_directive;
			_compiler_directive_if.elseif_part = _read_node() as compiler_directive;
		}
		public void visit(compiler_directive_if _compiler_directive_if)
		{
			read_compiler_directive_if(_compiler_directive_if);
		}
Beispiel #6
0
 public override void visit(compiler_directive_if node)
 {
     prepare_node(node.Name, "Name");
     prepare_node(node.Directive, "Directive");
     prepare_node(node.if_part, "if_part");
     prepare_node(node.elseif_part, "elseif_part");
 }
 public override void visit(compiler_directive_if _compiler_directive_if)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public override void visit(compiler_directive_if node)
 {
     text = string.Format("{0}={1}", node.Name, node.Directive);
 }