mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:39:48 +00:00
Enable the non-nullable experiment for dartdoc.
For Dartdoc 0.32.1 this will only impact generated docs for the 'dev' branch -- 'edge', 'be' and other builds will still generate legacy documentation. This may change with future versions as the SDK allow-list feature gets pipelined through the analyzer to dartdoc. Depends on https://dart-review.googlesource.com/c/sdk/+/149363 (will result in undefined behavior if applied to 0.32.0 or earlier). Change-Id: Idf7d37f5b06deec1c4e02708d24029f47a869df2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149344 Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
parent
d6ec2530fd
commit
83277a4f37
|
@ -47,7 +47,8 @@ def BuildDartdocAPIDocs(dirname):
|
|||
with bot.BuildStep('Build API docs by dartdoc'):
|
||||
bot_utils.run([
|
||||
dart_exe, dartdoc_dart, '--sdk-docs', '--output', dirname,
|
||||
'--footer', footer_file, '--rel-canonical-prefix=' + url
|
||||
'--enable-experiment', 'non-nullable', '--footer', footer_file,
|
||||
'--rel-canonical-prefix=' + url
|
||||
])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue