Lexer::start_line (int current_line, int current_column)
{
if (line_map)
- line_map->start_line (current_line, current_column);
+ linemap_line_start (line_table, current_line, current_column);
}
} // namespace Rust
this->in_file_ = false;
}
-// Start a new line.
-
-void
-Linemap::start_line (unsigned lineno, unsigned linesize)
-{
- linemap_line_start (line_table, lineno, linesize);
-}
-
// Return the Linemap to use for the gcc backend.
Linemap *
// 0, but it will be non-zero if the Rust source has a //line comment.
void start_file (const char *file_name, unsigned int line_begin);
- // Subsequent Location values will come from the line LINE_NUMBER,
- // in the current file. LINE_SIZE is the size of the line in bytes.
- // This will normally be called for every line in a source file.
- void start_line (unsigned int line_number, unsigned int line_size);
-
// Stop generating Location values. This will be called after all
// input files have been read, in case any cleanup is required.
void stop ();