Changeset 15988 in josm for trunk/scripts


Ignore:
Timestamp:
2020-03-01T23:36:07+01:00 (5 years ago)
Author:
simon04
Message:

see #18802 - MapCSSRule: support list of selectors

  • allows to drop MapCSSTagChecker.GroupedMapCSSRule
  • remove code duplication in MapCSSStyleSource/MapCSSTagCheckerIndex w.r.t. MapCSSRuleIndex
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r15985 r15988  
    342342        private List<TagInfoTag> convertStyleSheet() {
    343343            return styleSource.rules.stream()
    344                     .flatMap(rule -> rule.selector.getConditions().stream())
     344                    .flatMap(rule -> rule.selectors.stream())
     345                    .flatMap(selector -> selector.getConditions().stream())
    345346                    .filter(ConditionFactory.SimpleKeyValueCondition.class::isInstance)
    346347                    .map(ConditionFactory.SimpleKeyValueCondition.class::cast)
Note: See TracChangeset for help on using the changeset viewer.