Skip to content

Analysis server's BazelWorkspace needs to support dart_package directives in BUILD files #42594

@stereotype441

Description

@stereotype441

The way to opt packages into NNBD in a Bazel workspace will be to include this directive in a BUILD file:

dart_package(
    non_nullable = True,
)

The analysis server needs to recognize this pattern and use it to determine whether a package is opted in to NNBD.

Note that BUILD files are auto-formatted so it's not necessary to parse the whole file to find this directive; a simple regexp should suffice.

Metadata

Metadata

Assignees

Labels

NNBDIssues related to NNBD Releasedevexp-serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions