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:
Janice Collins 2020-05-29 12:55:05 +00:00 committed by commit-bot@chromium.org
parent d6ec2530fd
commit 83277a4f37

View file

@ -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
])