modifiers.carbon 1.3 KB

123456789101112131415161718192021222324252627282930
  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. private choice Ordering {
  7. Less,
  8. Equivalent,
  9. Greater,
  10. Incomparable
  11. }
  12. // CHECK:STDOUT: - filename: modifiers.carbon
  13. // CHECK:STDOUT: parse_tree: [
  14. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  15. // CHECK:STDOUT: {kind: 'ChoiceIntroducer', text: 'choice'},
  16. // CHECK:STDOUT: {kind: 'PrivateModifier', text: 'private'},
  17. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Ordering'},
  18. // CHECK:STDOUT: {kind: 'ChoiceDefinitionStart', text: '{', subtree_size: 4},
  19. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Less'},
  20. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  21. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Equivalent'},
  22. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  23. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Greater'},
  24. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  25. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Incomparable'},
  26. // CHECK:STDOUT: {kind: 'ChoiceDefinition', text: '}', subtree_size: 12},
  27. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  28. // CHECK:STDOUT: ]