Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
experimental_features.cc
Go to the documentation of this file.
1// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
5//
6// Instead modify 'tools/experimental_features.yaml' and run
7// 'dart tools/generate_experimental_flags.dart' to update.
8
10
11#include <cstring>
12#include "platform/assert.h"
13#include "vm/globals.h"
14
15namespace dart {
16
18 constexpr bool kFeatureValues[] = {
19 true, true, true, true, true, true, true, true, true, true, true,
20 true, true, true, true, true, true, true, true, true, true, true,
21 };
22 ASSERT(static_cast<size_t>(feature) < ARRAY_SIZE(kFeatureValues));
23 return kFeatureValues[static_cast<int>(feature)];
24}
25
27 constexpr const char* kFeatureNames[] = {
28 "inference-update-3",
29 "inline-class",
30 "inference-update-2",
31 "sealed-class",
32 "class-modifiers",
33 "records",
34 "patterns",
35 "unnamed-libraries",
36 "inference-update-1",
37 "enhanced-enums",
38 "named-arguments-anywhere",
39 "super-parameters",
40 "constructor-tearoffs",
41 "generic-metadata",
42 "triple-shift",
43 "nonfunction-type-aliases",
44 "non-nullable",
45 "extension-methods",
46 "constant-update-2018",
47 "control-flow-collections",
48 "set-literals",
49 "spread-collections",
50 };
51 ASSERT(static_cast<size_t>(feature) < ARRAY_SIZE(kFeatureNames));
52 return kFeatureNames[static_cast<int>(feature)];
53}
54
55} // namespace dart
#define ASSERT(E)
bool GetExperimentalFeatureDefault(ExperimentalFeature feature)
const char * GetExperimentalFeatureName(ExperimentalFeature feature)
#define ARRAY_SIZE(array)
Definition globals.h:72