mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:45:06 +00:00
5baa4af7d8
This adds the 'views' feature flag together with parser support for 'view class'. If the feature is not enabled, an error is reported. TEST=pkg/front_end/parser_testcases/views/... Change-Id: I813ac86a0e7de9f0a5729c6d7ae35b82d1258ae5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/265780 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Jens Johansen <jensj@google.com> Reviewed-by: William Hesse <whesse@google.com>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Copyright (c) 2020, 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.
|
|
// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
|
|
//
|
|
// Instead modify 'tools/experimental_features.yaml' and run
|
|
// 'dart tools/generate_experimental_flags.dart' to update.
|
|
//
|
|
// Current version: 2.19.0
|
|
|
|
#ifndef RUNTIME_VM_EXPERIMENTAL_FEATURES_H_
|
|
#define RUNTIME_VM_EXPERIMENTAL_FEATURES_H_
|
|
|
|
namespace dart {
|
|
|
|
enum class ExperimentalFeature {
|
|
nonfunction_type_aliases,
|
|
non_nullable,
|
|
extension_methods,
|
|
constant_update_2018,
|
|
control_flow_collections,
|
|
generic_metadata,
|
|
set_literals,
|
|
spread_collections,
|
|
triple_shift,
|
|
constructor_tearoffs,
|
|
enhanced_enums,
|
|
named_arguments_anywhere,
|
|
super_parameters,
|
|
inference_update_1,
|
|
unnamed_libraries,
|
|
};
|
|
|
|
bool GetExperimentalFeatureDefault(ExperimentalFeature feature);
|
|
const char* GetExperimentalFeatureName(ExperimentalFeature feature);
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_EXPERIMENTAL_FEATURES_H_
|