Example #1
0
		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();
        }
Example #3
0
        public override void GenerateCode(int level, CGenerator generator)
        {
            if (this.Type != null)
            {
                generator.IndentLine(level);

                generator.OutputStream.Write("extern ");

                // declare the variable
                this.Type.GenerateCode(generator);

                generator.OutputStream.Write(";");
                generator.WriteNewLine();
            }
        }
Example #4
0
		public override void GenerateCode(int level, CGenerator generator)
		{
			if (this.Type != null)
			{
				generator.IndentLine(level);

				generator.OutputStream.Write("extern ");

				// declare the variable
				this.Type.GenerateCode(generator);

				generator.OutputStream.Write(";");
				generator.WriteNewLine();
			}
		}
Example #5
0
		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();
 }