Files
swift-mirror/include/swift/AST/AccessorKind.h
2025-06-19 12:29:27 +01:00

36 lines
1.3 KiB
C++

//===-- AST/AccessorKind.h --------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_AST_ACCESSOR_KIND_H
#define SWIFT_AST_ACCESSOR_KIND_H
/// This header is included in a bridging header. Be *very* careful with what
/// you include here! See include caveats in `ASTBridging.h`.
#include "swift/Basic/SwiftBridging.h"
namespace swift {
// Note that the values of these enums line up with %select values in
// diagnostics.
enum class ENUM_EXTENSIBILITY_ATTR(closed) AccessorKind {
#define ACCESSOR(ID, KEYWORD) ID SWIFT_NAME(#KEYWORD),
#define INIT_ACCESSOR(ID, KEYWORD) \
ID, // FIXME: We should be able to remove this once Linux CI host Swift is
// upgraded to 6.0
#define LAST_ACCESSOR(ID) Last = ID
#include "swift/AST/AccessorKinds.def"
};
} // namespace swift
#endif // SWIFT_AST_ACCESSOR_KIND_H