declaration.carbon 783 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. impl bool as Interface;
  7. // CHECK:STDOUT: - filename: declaration.carbon
  8. // CHECK:STDOUT: parse_tree: [
  9. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  10. // CHECK:STDOUT: {kind: 'ImplIntroducer', text: 'impl'},
  11. // CHECK:STDOUT: {kind: 'BoolTypeLiteral', text: 'bool'},
  12. // CHECK:STDOUT: {kind: 'TypeImplAs', text: 'as', subtree_size: 2},
  13. // CHECK:STDOUT: {kind: 'IdentifierNameExpr', text: 'Interface'},
  14. // CHECK:STDOUT: {kind: 'ImplDecl', text: ';', subtree_size: 5},
  15. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  16. // CHECK:STDOUT: ]