parse_node_kind.def 982 B

12345678910111213141516171819202122232425
  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. // Note that this is an X-macro header.
  6. //
  7. // It does not use `#include` guards, and instead is designed to be `#include`ed
  8. // after the x-macro is defined in order for its inclusion to expand to the
  9. // desired output. The x-macro for this header is `CARBON_PARSE_NODE_KIND`. The
  10. // definition provided will be removed at the end of this file to clean up.
  11. #ifndef CARBON_PARSE_NODE_KIND
  12. #error "Must define the x-macro to use this file."
  13. #endif
  14. CARBON_PARSE_NODE_KIND(CodeBlockEnd)
  15. CARBON_PARSE_NODE_KIND(CodeBlock)
  16. CARBON_PARSE_NODE_KIND(DeclarationEnd)
  17. CARBON_PARSE_NODE_KIND(EmptyDeclaration)
  18. CARBON_PARSE_NODE_KIND(FunctionDeclaration)
  19. CARBON_PARSE_NODE_KIND(Identifier)
  20. CARBON_PARSE_NODE_KIND(ParameterListEnd)
  21. CARBON_PARSE_NODE_KIND(ParameterList)
  22. #undef CARBON_PARSE_NODE_KIND