v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
function-syntax-kind.h
Go to the documentation of this file.
1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_OBJECTS_FUNCTION_SYNTAX_KIND_H_
6#define V8_OBJECTS_FUNCTION_SYNTAX_KIND_H_
7
8#include "src/utils/utils.h"
9
10namespace v8 {
11namespace internal {
12
22
24 switch (kind) {
26 return "AnonymousExpression";
28 return "NamedExpression";
30 return "Declaration";
32 return "AccessorOrMethod";
34 return "Wrapped";
35 }
37}
38
39inline std::ostream& operator<<(std::ostream& os, FunctionSyntaxKind kind) {
40 return os << FunctionSyntaxKind2String(kind);
41}
42
43} // namespace internal
44} // namespace v8
45
46#endif // V8_OBJECTS_FUNCTION_SYNTAX_KIND_H_
Builtins::Kind kind
Definition builtins.cc:40
std::ostream & operator<<(std::ostream &os, AtomicMemoryOrder order)
const char * FunctionSyntaxKind2String(FunctionSyntaxKind kind)