mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 16:30:30 +00:00
Add a synonym for ParseExpression to use when parsing a type, to make
parsing code a little more readable.
This commit is contained in:
1 parent
34f1a03f7b
commit
4a92c41673
2 files changed
+4
-1
No files matched your search
@@ -440,7 +440,7 @@ auto ParseTree::Parser::ParseVariableDeclaration() -> Node {
|
||||
TokenizedBuffer::Token var_token = Consume(TokenKind::VarKeyword());
|
||||
auto start = StartSubtree();
|
||||
|
||||
auto type = ParseExpression();
|
||||
auto type = ParseType();
|
||||
|
||||
auto name = ConsumeAndAddLeafNodeIf(TokenKind::Identifier(),
|
||||
ParseNodeKind::DeclaredName());
|
||||
|
||||
Reference in new issue
Block a user