Example #1
0
 public PreProcessorDirective(int line, int col, int endLine, int endCol, Tokenizer.PreprocessorDirective cmd, string arg)
 {
     this.Line    = line;
     this.Col     = col;
     this.EndLine = endLine;
     this.EndCol  = endCol;
     this.Cmd     = cmd;
     this.Arg     = arg;
 }
Example #2
0
        //[Conditional ("FULL_AST")]
        public void AddPreProcessorDirective(int startLine, int startCol, int endLine, int endColumn, Tokenizer.PreprocessorDirective cmd, string arg)
        {
            if (Suppress)
            {
                return;
            }
            if (inComment)
            {
                EndComment(startLine, startCol);
            }
            switch (cmd)
            {
            case Tokenizer.PreprocessorDirective.Pragma:
                Specials.Add(new PragmaPreProcessorDirective(startLine, startCol, endLine, endColumn, cmd, arg));
                break;

            case Tokenizer.PreprocessorDirective.Line:
                Specials.Add(new LineProcessorDirective(startLine, startCol, endLine, endColumn, cmd, arg));
                break;

            default:
                Specials.Add(new PreProcessorDirective(startLine, startCol, endLine, endColumn, cmd, arg));
                break;
            }
        }
Example #3
0
 public LineProcessorDirective(int line, int col, int endLine, int endCol, Tokenizer.PreprocessorDirective cmd, string arg) : base(line, col, endLine, endCol, cmd, arg)
 {
 }
Example #4
0
 public void AddPreProcessorDirective(int startLine, int startCol, int endLine, int endColumn, Tokenizer.PreprocessorDirective cmd, string arg)
 {
     if (inComment)
     {
         EndComment(startLine, startCol);
     }
     Specials.Add(new PreProcessorDirective(startLine, startCol, endLine, endColumn, cmd, arg));
 }