|
51 | 51 | # to disable this feature. For more on library language version override, see
|
52 | 52 | # https://dart.dev/to/language-version-override
|
53 | 53 | #
|
54 |
| -# 3. expired: (optional boolean) |
| 54 | +# 3. experimentalReleaseVersion: (optional #.#) |
| 55 | +# The Dart SDK version (<major>.<minor>) in which the experiment can be used |
| 56 | +# by enabling the experiment flag. |
| 57 | +# |
| 58 | +# If this field is specified, then the experiment may be enabled in this |
| 59 | +# version or later versions, by specifying the flag on the command line. |
| 60 | +# (e.g. --enable-experiment=non-nullable). |
| 61 | +# |
| 62 | +# If `sdk/lib/_internal/allowed_experiments.json` is updated, this field |
| 63 | +# specifies the version that enables this experiment for those libraries |
| 64 | +# and packages. |
| 65 | +# |
| 66 | +# 4. expired: (optional boolean) |
55 | 67 | # If true, then the experiment can no longer be enabled by specifying the
|
56 | 68 | # flag on the command line, and the corresponding entry is slated for
|
57 | 69 | # eventual removal from this file. If this field is omitted, then 'expired'
|
58 | 70 | # is considered to be false.
|
59 | 71 | #
|
60 |
| -# 4. validation: (optional string) |
| 72 | +# 5. validation: (optional string) |
61 | 73 | # If provided this should be a program that prints "feature enabled" on
|
62 | 74 | # stdout if the feature is enabled, and throws or fails to compile otherwise.
|
63 | 75 | # The intended use for this is to be able to run generic tests for each
|
|
74 | 86 | # the feature as it is being developed.
|
75 | 87 | #
|
76 | 88 | # Experimental release:
|
77 |
| -# When an experiment is released, then the 'experimentalReleaseVersion' field |
78 |
| -# is added indicating which version of the SDK contains this new language |
79 |
| -# feature for libraries and packages in mentioned in |
80 |
| -# `sdk/lib/_internal/allowed_experiments.json`. For other libraries and |
81 |
| -# packages, passing the experiment flag is still required to turn on the |
| 89 | +# When we want to allow certain libraries and packages to enable the language |
| 90 | +# feature by default, we add an entry to the |
| 91 | +# `sdk/lib/_internal/allowed_experiments.json` allow list and then we bump the |
| 92 | +# `experimentalReleaseVersion` field to the latest version. For other libraries |
| 93 | +# and packages, passing the experiment flag is still required to turn on the |
82 | 94 | # experiment.
|
83 | 95 | #
|
84 | 96 | # Shipped:
|
|
0 commit comments