Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Allow unwrapped arguments in match expressions #12332

Merged
merged 1 commit into from
Jul 9, 2018
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 5, 2018

#11866 assumes the arguments to an MGL_MATCH expression are all expressions. But for use cases like #11830 (comment), it feels natural to insert a raw object instead of a constant-value expression containing that object. This change allows either an expression or a non-expression as an argument to a match expression. There probably are other places where we’re assuming that arguments are wrapped in expressions, but this is the most likely one to trip up a developer.

/cc @fabian-guerra

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS crash runtime styling labels Jul 5, 2018
@1ec5 1ec5 added this to the ios-v4.2.0 milestone Jul 5, 2018
@1ec5 1ec5 self-assigned this Jul 5, 2018
@1ec5 1ec5 requested a review from fabian-guerra July 5, 2018 23:54
@1ec5 1ec5 force-pushed the 1ec5-match-literal-11830 branch from 62d0862 to d3241f9 Compare July 5, 2018 23:56
Copy link
Contributor

@fabian-guerra fabian-guerra left a comment

Choose a reason for hiding this comment

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

👍🏼

@1ec5 1ec5 force-pushed the 1ec5-match-literal-11830 branch from d3241f9 to 0b69716 Compare July 7, 2018 01:58
@1ec5 1ec5 force-pushed the 1ec5-match-literal-11830 branch from 0b69716 to 13627e7 Compare July 9, 2018 21:05
@1ec5 1ec5 merged commit ec8ac3c into master Jul 9, 2018
@1ec5 1ec5 deleted the 1ec5-match-literal-11830 branch July 9, 2018 23:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants