mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 08:06:41 +00:00
Support declaration modifier keywords (#3412)
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
1 parent
22dff46ed2
commit
fada410559
54 files changed
+1779
-244
No files matched your search
@@ -59,6 +59,8 @@ auto HandleBindingPattern(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
|
||||
// Allocate an instruction of the appropriate kind, linked to the name for
|
||||
// error locations.
|
||||
// TODO: The node stack is a fragile way of getting context information.
|
||||
// Get this information from somewhere else.
|
||||
switch (auto context_parse_node_kind = context.parse_tree().node_kind(
|
||||
context.node_stack().PeekParseNode())) {
|
||||
case Parse::NodeKind::ReturnedModifier:
|
||||
|
||||
Reference in new issue
Block a user