mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Liam Appelbe](/assets/img/avatar_default.png)
Fixes http://dartbug.com/34982 Bug: http://dartbug.com/34982 Change-Id: I0302586c5f0e58dd66e238bd32088ebe1c150c0e Reviewed-on: https://dart-review.googlesource.com/c/93124 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Liam Appelbe <liama@google.com>
37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_LIB_MIRRORS_H_
|
|
#define RUNTIME_LIB_MIRRORS_H_
|
|
|
|
#include "vm/allocation.h"
|
|
|
|
namespace dart {
|
|
|
|
class Mirrors : public AllStatic {
|
|
public:
|
|
#define MIRRORS_KIND_SHIFT_LIST(V) \
|
|
V(kAbstract) \
|
|
V(kGetter) \
|
|
V(kSetter) \
|
|
V(kConstructor) \
|
|
V(kConstCtor) \
|
|
V(kGenerativeCtor) \
|
|
V(kRedirectingCtor) \
|
|
V(kFactoryCtor) \
|
|
V(kExternal) \
|
|
V(kSynthetic)
|
|
|
|
// These offsets much be kept in sync with those in mirrors_impl.dart.
|
|
enum KindShifts {
|
|
#define DEFINE_KIND_SHIFT_ENUM(name) name,
|
|
MIRRORS_KIND_SHIFT_LIST(DEFINE_KIND_SHIFT_ENUM)
|
|
#undef DEFINE_KIND_SHIFT_ENUM
|
|
};
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_LIB_MIRRORS_H_
|