Exemplo n.º 1
0
 public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     // pre-processor directive must start on its own line
     output.Write('#', TextTokenType.Text);
     output.Write(type.ToString().ToLowerInvariant(), TextTokenType.Text);
     if (!string.IsNullOrEmpty(argument))
     {
         output.WriteSpace();
         output.Write(argument, TextTokenType.Text);
     }
     output.WriteLine();
 }
Exemplo n.º 2
0
 public void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     // pre-processor directive must start on its own line
     output.WriteKeyword("#");
     output.WriteKeyword(type.ToString().ToLowerInvariant());
     if (!string.IsNullOrEmpty(argument))
     {
         output.Write(' ');
         output.Write(argument);
     }
     output.WriteLine();
 }
Exemplo n.º 3
0
 public void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     // pre-processor directive must start on its own line
     if (!isAtStartOfLine)
     {
         NewLine();
     }
     WriteIndentation();
     textWriter.Write('#');
     textWriter.Write(type.ToString().ToLowerInvariant());
     if (!string.IsNullOrEmpty(argument))
     {
         textWriter.Write(' ');
         textWriter.Write(argument);
     }
     NewLine();
 }
Exemplo n.º 4
0
        public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
        {
            // pre-processor directive must start on its own line
            if (!isAtStartOfLine)
            {
                NewLine();
            }
            WriteIndentation();
            textWriter.Write('#');
            string directive = type.ToString().ToLowerInvariant();

            textWriter.Write(directive);
            column += 1 + directive.Length;
            if (!string.IsNullOrEmpty(argument))
            {
                textWriter.Write(' ');
                textWriter.Write(argument);
                column += 1 + argument.Length;
            }
            NewLine();
        }
 public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     base.WritePreProcessorDirective(type, argument);
     lastWritten = LastWritten.Whitespace;
 }
Exemplo n.º 6
0
 public abstract void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument);
Exemplo n.º 7
0
 public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     decoratedWriter.WritePreProcessorDirective(type, argument);
 }
		public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
		{
			// pre-processor directive must start on its own line
			if (!isAtStartOfLine)
				NewLine();
			WriteIndentation();
			textWriter.Write('#');
			string directive = type.ToString().ToLowerInvariant();
			textWriter.Write(directive);
			column += 1 + directive.Length;
			if (!string.IsNullOrEmpty(argument)) {
				textWriter.Write(' ');
				textWriter.Write(argument);
				column += 1 + argument.Length;
			}
			NewLine();
		}
Exemplo n.º 9
0
 public PreProcessorDirective(PreProcessorDirectiveType type, string argument = null)
 {
     this.Type     = type;
     this.Argument = argument;
 }
		public void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
		{
			// pre-processor directive must start on its own line
			output.WriteKeyword("#");
			output.WriteKeyword(type.ToString().ToLowerInvariant());
			if (!string.IsNullOrEmpty(argument)) {
				output.Write(' ');
				output.Write(argument);
			}
			output.WriteLine();
		}
Exemplo n.º 11
0
		public void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
		{
			// pre-processor directive must start on its own line
			if (!isAtStartOfLine)
				NewLine();
			WriteIndentation();
			textWriter.Write('#');
			textWriter.Write(type.ToString().ToLowerInvariant());
			if (!string.IsNullOrEmpty(argument)) {
				textWriter.Write(' ');
				textWriter.Write(argument);
			}
			NewLine();
		}
Exemplo n.º 12
0
 public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
 }
		public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
		{
			base.WritePreProcessorDirective(type, argument);
			lastWritten = LastWritten.Whitespace;
		}
Exemplo n.º 14
0
		public abstract void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument);
Exemplo n.º 15
0
		public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
		{
			decoratedWriter.WritePreProcessorDirective(type, argument);
		}
Exemplo n.º 16
0
 public override void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     // pre-processor directive must start on its own line
     output.Write('#', TextTokenType.Text);
     output.Write(type.ToString().ToLowerInvariant(), TextTokenType.Text);
     if (!string.IsNullOrEmpty(argument)) {
         output.WriteSpace();
         output.Write(argument, TextTokenType.Text);
     }
     output.WriteLine();
 }
Exemplo n.º 17
0
 public PreProcessorDirective(PreProcessorDirectiveType type, TextLocation startLocation, TextLocation endLocation)
 {
     this.Type          = type;
     this.startLocation = startLocation;
     this.endLocation   = endLocation;
 }
Exemplo n.º 18
0
 public void WritePreProcessorDirective(PreProcessorDirectiveType type, string argument)
 {
     this.Write("#");
     this.Write(type.ToString().ToLowerInvariant());
     if (!string.IsNullOrEmpty(argument))
     {
         this.Write(' ');
         this.Write(argument);
     }
     this.WriteLine();
 }