mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01: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:
@@ -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