mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:24:42 +01:00
lowerCamelCase => snake_case (#396)
This commit is contained in:
@@ -17,19 +17,20 @@ namespace Carbon {
|
||||
class ParseAndLexContext {
|
||||
public:
|
||||
// Creates an instance analyzing the given input file.
|
||||
ParseAndLexContext(const std::string& inputFile) : inputFileName(inputFile) {}
|
||||
ParseAndLexContext(const std::string& input_file)
|
||||
: input_file_name(input_file) {}
|
||||
|
||||
// Writes a syntax error diagnostic, containing message, for the input file at
|
||||
// the given line, to standard error.
|
||||
auto PrintDiagnostic(const std::string& message, int lineNumber) -> void;
|
||||
auto PrintDiagnostic(const std::string& message, int line_number) -> void;
|
||||
|
||||
// The source range of the token being (or just) lex'd.
|
||||
yy::location currentTokenPosition;
|
||||
yy::location current_token_position;
|
||||
|
||||
private:
|
||||
// A path to the file processed, relative to the current working directory
|
||||
// when *this is called.
|
||||
const std::string inputFileName;
|
||||
const std::string input_file_name;
|
||||
};
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
Reference in New Issue
Block a user