mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Factor statement parsing out of code block parsing.
This commit is contained in:
@@ -171,6 +171,9 @@ class ParseTree::Parser {
|
||||
// Parses an expression statement: an expression followed by a semicolon.
|
||||
auto ParseExpressionStatement() -> llvm::Optional<Node>;
|
||||
|
||||
// Parses a statement.
|
||||
auto ParseStatement() -> llvm::Optional<Node>;
|
||||
|
||||
ParseTree& tree;
|
||||
TokenizedBuffer& tokens;
|
||||
TokenDiagnosticEmitter& emitter;
|
||||
|
||||
Reference in New Issue
Block a user