Skip to content

unecessary_cast false-positive #57826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zoechi opened this issue Nov 11, 2018 · 2 comments
Closed

unecessary_cast false-positive #57826

zoechi opened this issue Nov 11, 2018 · 2 comments
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead.

Comments

@zoechi
Copy link
Contributor

zoechi commented Nov 11, 2018

  @override
  BuiltList<Node> get childNodes =>
      (ListBuilder<Node>(directives as Iterable ?? <Node>[])
            ..addAll(selections))
          .build();

  @nullable
  BuiltList<Directive> get directives;

  BuiltList<Selection> get selections;

Directive and Selection implement Node

image

image

@pq
Copy link
Member

pq commented Nov 12, 2018

This is actually an analyzer hint and should be tracked in the SDK...

@pq
Copy link
Member

pq commented Nov 12, 2018

This issue was moved to #35140

@pq pq closed this as completed Nov 12, 2018
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead.
Projects
None yet
Development

No branches or pull requests

3 participants