Skip to content

Conversation

@jcollins-g
Copy link
Contributor

Please review the non-"verified" bits here. I tried to minimize those changes as this is just trying to be a merge.

Change return type on valueAt to dynamic, and expand getValueAs to call valueAt too to save some casting. Filed #2814 as DartdocOptions was designed when "strong mode" was still a new thing and we could do better now with the new language features.

There's a cleanup we could do to use getValueAs more extensively, might be something we could do to help mitigate #2814.

jcollins-g and others added 11 commits September 21, 2021 14:41
* Just try to get something working

* simplify

* Store the current date in output

* well it doesn't complain locally now?

* Empty commit to trigger CI
* Enforce strict-raw-types

* presubmit

Co-authored-by: Janice Collins <[email protected]>
* Allow magical accessors from nowhere if they are Enum related

* intermediate

* dartfmt

* Add a stub Enum class since that's now in the required list
@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Sep 28, 2021
@jcollins-g jcollins-g requested a review from srawlins September 28, 2021 18:22
Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all look great to me!


/// Calls [valueAt] with the working directory at the start of the program.
T? valueAtCurrent() => valueAt(_directoryCurrent);
// TODO(jcollins-g): use of dynamic. https://github.com/dart-lang/dartdoc/issues/2814
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 thanks for filing a bug!

@jcollins-g jcollins-g merged commit 5e86e84 into dart-lang:nnbd Sep 28, 2021
@jcollins-g jcollins-g deleted the nnbd-mainmerge-0928 branch September 28, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Google CLA check succeeded.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants