Skip to content

Conversation

@matanlurey
Copy link
Contributor

Branched from #200.

Closes #198.

@matanlurey matanlurey requested a review from kevmoo July 5, 2017 03:27
@matanlurey matanlurey mentioned this pull request Jul 5, 2017
if (element.metadata.isEmpty) {
return null;
}
final results = annotationsOfExact(element);
Copy link
Member

Choose a reason for hiding this comment

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

or .single(orElse: () => null – or something like that

Copy link
Member

Choose a reason for hiding this comment

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

Would be results.firstWhere((_) => true, orElse: () => null); IMO what is already in this PR is more readable.

@matanlurey matanlurey force-pushed the nicer-analysis-failures branch from 10ba7c2 to 99f35a0 Compare July 6, 2017 15:01
@matanlurey matanlurey merged commit 56c4f1a into dart-lang:master Jul 6, 2017
@matanlurey matanlurey deleted the nicer-analysis-failures branch July 6, 2017 16:29
mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
…_gen#201)

* Add annotationsOfExact.

* Add type checks.

* Update CHANGELOG.
mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
…_gen#201)

* Add annotationsOfExact.

* Add type checks.

* Update CHANGELOG.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants