From 83277a4f3793271c372b649b87a80eba1d1c383b Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Fri, 29 May 2020 12:55:05 +0000 Subject: [PATCH] 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 Reviewed-by: Alexander Thomas --- tools/bots/dart_sdk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bots/dart_sdk.py b/tools/bots/dart_sdk.py index 2bfc0b946f8..94fe2eaabcf 100755 --- a/tools/bots/dart_sdk.py +++ b/tools/bots/dart_sdk.py @@ -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 ])