expression_category.h 799 B

1234567891011121314151617181920212223
  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. #ifndef CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_
  5. #define CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_
  6. namespace Carbon {
  7. // The category of a Carbon expression indicates whether it evaluates
  8. // to a value, reference, or initialization.
  9. enum class ExpressionCategory {
  10. // A "value expression" produces a value (with no associated location).
  11. Value,
  12. // A "reference expression" produces a location of an existing value.
  13. Reference,
  14. // An "initializing expression" takes a location and initialize it.
  15. Initializing,
  16. };
  17. } // namespace Carbon
  18. #endif // CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_