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; }
//[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; } }
public LineProcessorDirective(int line, int col, int endLine, int endCol, Tokenizer.PreprocessorDirective cmd, string arg) : base(line, col, endLine, endCol, cmd, arg) { }
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)); }