示例#1
0
文件: PP_Macro.cs 项目: plocklsh/lwip
		public override void GenerateCode(int level, CGenerator generator)
		{
			// macros are not indented at all
			generator.OutputStream.Write("#define " + this.Name + " ");
			generator.WriteMultilineString(this.Value);
			generator.WriteNewLine();
		}
示例#2
0
 public override void GenerateCode(int level, CGenerator generator)
 {
     // macros are not indented at all
     generator.OutputStream.Write("#define " + this.Name + " ");
     generator.WriteMultilineString(this.Value);
     generator.WriteNewLine();
 }
示例#3
0
文件: Comment.cs 项目: plocklsh/lwip
		public override void GenerateCode(int level, CGenerator generator)
		{
			generator.IndentLine(level);
			generator.OutputStream.Write(CommentStart);

			if (!this.SingleLine)
			{
				generator.WriteNewLine();
				generator.IndentLine(level);
				generator.WriteMultilineString(this.Comment_, level);
				generator.WriteNewLine();
				generator.IndentLine(level);
			}
			else
			{
				generator.OutputStream.Write(" " + Comment_ + " ");
			}

			generator.OutputStream.Write(CommentEnd);
			generator.WriteNewLine();
		}
        public override void GenerateCode(int level, CGenerator generator)
        {
            generator.IndentLine(level);
            generator.OutputStream.Write(CommentStart);

            if (!this.SingleLine)
            {
                generator.WriteNewLine();
                generator.IndentLine(level);
                generator.WriteMultilineString(this.Comment_, level);
                generator.WriteNewLine();
                generator.IndentLine(level);
            }
            else
            {
                generator.OutputStream.Write(" " + Comment_ + " ");
            }

            generator.OutputStream.Write(CommentEnd);
            generator.WriteNewLine();
        }
示例#5
0
 public override void GenerateCode(int level, CGenerator generator)
 {
     generator.WriteMultilineString(this.Value);
 }
示例#6
0
文件: Code.cs 项目: plocklsh/lwip
		public override void GenerateCode(int level, CGenerator generator)
		{
			generator.IndentLine(level);
			generator.WriteMultilineString(this.Code_, level);
			generator.WriteNewLine();
		}
 public override void GenerateCode(int level, CGenerator generator)
 {
     generator.IndentLine(level);
     generator.WriteMultilineString(this.Code_, level);
     generator.WriteNewLine();
 }
示例#8
0
		public override void GenerateCode(int level, CGenerator generator)
		{
			generator.WriteMultilineString(this.Value);
		}