ruleIndexMap property

Map<String, int> get ruleIndexMap
inherited

Get a map from rule names to rule indexes.

Used for XPath and tree pattern compilation.

Implementation

Map<String, int> get ruleIndexMap {
  var result = ruleIndexMapCache[ruleNames];
  if (result == null) {
    result = Map.unmodifiable(toMap(ruleNames));
    ruleIndexMapCache[ruleNames] = result;
  }

  return result;
}