DescriptionMap merging.
Basic YAML map merging suitable for merging a default map with an overriding one.
The semantics favor the overrider with a twist to support a short-hand for lists that stand-in for maps of scalars to booleans. Specifically, lint rules can be enumerated as a list or as a map. To make this work, lists can be "promoted" to maps. In particular, if
linter:
rules:
- camel_case_types
- one_member_abstracts
is merged with
linter:
rules:
one_member_abstracts: false
always_specify_return_types: true
the right thing is done to get us to:
linter:
rules:
camel_case_types: true
one_member_abstracts: false
always_specify_return_types: true
R=brianwilkerson@google.com, johnmccutchan@google.com
Committed: https://github.com/dart-lang/sdk/commit/67dc108f391937786a15c8adc17667486cf34548
Patch Set 1 #
Total comments: 6
Patch Set 2 : Runtime type check fixes. #
Messages
Total messages: 7 (1 generated)
|