mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 23:51:17 +00:00
[toolchain] Parse variables and parameters as 'name: Type'. (#574)
Factor out code for pattern parsing, that only recognizes this form for now, and uniformly form a 'PatternBinding' parse node for this, for both variables and patterns.
This commit is contained in:
1 parent
47ee66feef
commit
61b30b1243
6 files changed
+103
-58
No files matched your search
@@ -21,7 +21,7 @@ CARBON_PARSE_NODE_KIND(FunctionDeclaration)
|
||||
CARBON_PARSE_NODE_KIND(ParameterList)
|
||||
CARBON_PARSE_NODE_KIND(ParameterListComma)
|
||||
CARBON_PARSE_NODE_KIND(ParameterListEnd)
|
||||
CARBON_PARSE_NODE_KIND(ParameterDeclaration)
|
||||
CARBON_PARSE_NODE_KIND(PatternBinding)
|
||||
CARBON_PARSE_NODE_KIND(ReturnType)
|
||||
CARBON_PARSE_NODE_KIND(VariableDeclaration)
|
||||
CARBON_PARSE_NODE_KIND(VariableInitializer)
|
||||
|
||||
Reference in new issue
Block a user