| 1234567891011121314151617181920212223242526 |
- // 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
- class Foo();
- interface Bar() {}
- // CHECK:STDOUT: - filename: empty.carbon
- // CHECK:STDOUT: parse_tree: [
- // CHECK:STDOUT: {kind: 'FileStart', text: ''},
- // CHECK:STDOUT: {kind: 'ClassIntroducer', text: 'class'},
- // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Foo'},
- // CHECK:STDOUT: {kind: 'ParamListStart', text: '('},
- // CHECK:STDOUT: {kind: 'ParamList', text: ')', subtree_size: 2},
- // CHECK:STDOUT: {kind: 'ClassDecl', text: ';', subtree_size: 5},
- // CHECK:STDOUT: {kind: 'InterfaceIntroducer', text: 'interface'},
- // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Bar'},
- // CHECK:STDOUT: {kind: 'ParamListStart', text: '('},
- // CHECK:STDOUT: {kind: 'ParamList', text: ')', subtree_size: 2},
- // CHECK:STDOUT: {kind: 'InterfaceDefinitionStart', text: '{', subtree_size: 5},
- // CHECK:STDOUT: {kind: 'InterfaceDefinition', text: '}', subtree_size: 6},
- // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
- // CHECK:STDOUT: ]
|