operator [] method
Implementation
Rule operator [](int index) {
if (index < 0 || index >= rules.length) {
throw RangeError.range(index, 0, rules.length - 1, "Index");
}
return rules[index];
}
Rule operator [](int index) {
if (index < 0 || index >= rules.length) {
throw RangeError.range(index, 0, rules.length - 1, "Index");
}
return rules[index];
}