Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Conversation

@matanlurey
Copy link
Contributor

void main() {
test('should emit an index operator', () {
expect(
refer('bar').index(literalTrue).assignVar('foo').statement,
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] passing a boolean to the index operator isn't something I've ever seen - do we want a more common example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used literalString. Thanks!

@matanlurey matanlurey merged commit 25571e3 into dart-archive:master Nov 21, 2017
@matanlurey matanlurey deleted the add-index-operator branch November 21, 2017 04:37
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
* Add index operator access to Expression.

* Address feedback.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Accessing values in a map

3 participants