mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 20:14:56 +01:00
I've been thinking about this since we decided to add placeholders in the parse tree. This allows a clearer division of work in check handling, where we were doing work for ExprOpenParen that's only necessary for tuples (splitting/renaming handle_paren.cpp accordingly).
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// AUTOUPDATE
|
|
|
|
var y: ((), (), ());
|
|
|
|
// CHECK:STDOUT: - filename: nested.carbon
|
|
// CHECK:STDOUT: parse_tree: [
|
|
// CHECK:STDOUT: {kind: 'FileStart', text: ''},
|
|
// CHECK:STDOUT: {kind: 'VariableIntroducer', text: 'var'},
|
|
// CHECK:STDOUT: {kind: 'IdentifierName', text: 'y'},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteral', text: ')', subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralComma', text: ','},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteral', text: ')', subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralComma', text: ','},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteralStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteral', text: ')', subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'TupleLiteral', text: ')', subtree_size: 10},
|
|
// CHECK:STDOUT: {kind: 'BindingPattern', text: ':', subtree_size: 12},
|
|
// CHECK:STDOUT: {kind: 'VariableDecl', text: ';', subtree_size: 14},
|
|
// CHECK:STDOUT: {kind: 'FileEnd', text: ''},
|
|
// CHECK:STDOUT: ]
|