chromium/v8/src/objects/function-kind.h

// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_OBJECTS_FUNCTION_KIND_H_
#define V8_OBJECTS_FUNCTION_KIND_H_

#include "src/base/bounds.h"
#include "src/base/macros.h"

namespace v8 {
namespace internal {

enum class FunctionKind : uint8_t {};

constexpr int kFunctionKindBitSize =;
static_assert;

inline bool IsArrowFunction(FunctionKind kind) {}

inline bool IsModule(FunctionKind kind) {}

inline bool IsModuleWithTopLevelAwait(FunctionKind kind) {}

inline bool IsAsyncGeneratorFunction(FunctionKind kind) {}

inline bool IsGeneratorFunction(FunctionKind kind) {}

inline bool IsAsyncFunction(FunctionKind kind) {}

inline bool IsResumableFunction(FunctionKind kind) {}

inline bool IsConciseMethod(FunctionKind kind) {}

inline bool IsStrictFunctionWithoutPrototype(FunctionKind kind) {}

inline bool IsGetterFunction(FunctionKind kind) {}

inline bool IsSetterFunction(FunctionKind kind) {}

inline bool IsAccessorFunction(FunctionKind kind) {}

inline bool IsDefaultConstructor(FunctionKind kind) {}

inline bool IsBaseConstructor(FunctionKind kind) {}

inline bool IsDerivedConstructor(FunctionKind kind) {}

inline bool IsClassConstructor(FunctionKind kind) {}

inline bool IsClassMembersInitializerFunction(FunctionKind kind) {}

inline bool IsConstructable(FunctionKind kind) {}

inline bool IsStatic(FunctionKind kind) {}

inline bool BindsSuper(FunctionKind kind) {}

inline bool IsAwaitAsIdentifierDisallowed(FunctionKind kind) {}

inline const char* FunctionKind2String(FunctionKind kind) {}

inline std::ostream& operator<<(std::ostream& os, FunctionKind kind) {}

}  // namespace internal
}  // namespace v8

#endif  // V8_OBJECTS_FUNCTION_KIND_H_