mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
38 lines
1.3 KiB
C++
38 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
|
|
|
|
/// `AccessorKind.h` is imported into Swift. Be *very* careful with what you
|
|
/// include here and keep these includes minimal!
|
|
///
|
|
/// See include guidelines and caveats in `BasicBridging.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
|