dart-sdk/tests
Johnni Winther 02e8bbb036 [cfe,analyzer] Share experimental flags for the parser
This adds a new generated file into _fe_analyzer_shared for the
experimental flags. This is now used by the parser when generating
messages about features not being available.

The default implementation uses whether the feature is enabled by default
or not, to emit different messages. This change will therefore ensure
that when a missing feature changes from 'experimental' to
'enabled by default', the  message reported by the parser will be
updated accordingly. Currently errors are only reported from the parser
on features that are enabled by default, so the message for experimental
features is not currently used.

The reporting is performed through the Listener, such that
implementations can override the reporting to improve the messaging.
This is done in the CFE where the message is improved to take into
account whether the language version is explicit in the parsed library.

In response to https://github.com/dart-lang/sdk/issues/46329

Change-Id: Ief812817c7eb4b1e433389f6f49d6a1f77604fa7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/269860
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-11-17 11:32:01 +00:00
..
co19 [co19] RawDatargamSocket tests enabled 2022-10-11 02:42:00 +00:00
co19_2 [co19] RawDatargamSocket tests enabled 2022-10-11 02:42:00 +00:00
corelib [vm] Replace Double_hashCode native method with graph intrinsic implementation. 2022-11-17 02:28:37 +00:00
corelib_2 [vm] Replace Double_hashCode native method with graph intrinsic implementation. 2022-11-17 02:28:37 +00:00
dartdevc Fix stack overflow in mixin application from separate library 2022-11-04 21:25:08 +00:00
dartdevc_2 Fix stack overflow in mixin application from separate library 2022-11-04 21:25:08 +00:00
ffi [vm/ffi] Add Dart_IsNull in dart_api_dl.h 2022-11-15 10:32:16 +00:00
ffi_2 [vm/ffi] Add Dart_IsNull in dart_api_dl.h 2022-11-15 10:32:16 +00:00
language [cfe,analyzer] Share experimental flags for the parser 2022-11-17 11:32:01 +00:00
language_2 Update Function class documentation: 2022-11-15 15:41:49 +00:00
lib [vm] Stricter checks when sending isolate messages between groups. 2022-10-28 19:18:51 +00:00
lib_2 [vm] Stricter checks when sending isolate messages between groups. 2022-10-28 19:18:51 +00:00
modular [pkg:js] Enable modular compilation for exports 2022-10-26 16:34:38 +00:00
standalone [test] Avoid tests fighting over the default service port. 2022-11-10 17:28:48 +00:00
standalone_2 [test] Avoid tests fighting over the default service port. 2022-11-10 17:28:48 +00:00
web [ffi] Convert ABI-specific integers to fixed-width integers when doing wasm FfiNative transformation. 2022-11-08 22:16:28 +00:00
web_2 [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.