class_definition.h 644 B

123456789101112131415161718192021222324
  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 EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_
  5. #define EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_
  6. #include <string>
  7. #include <vector>
  8. #include "executable_semantics/ast/member.h"
  9. #include "executable_semantics/ast/source_location.h"
  10. namespace Carbon {
  11. struct ClassDefinition {
  12. SourceLocation loc;
  13. std::string name;
  14. std::vector<Ptr<Member>> members;
  15. };
  16. } // namespace Carbon
  17. #endif // EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_