isReservedWord static method

bool isReservedWord(
  1. Set<String> keySet,
  2. String value
)

function to check if input is a reserved word

Implementation

static bool isReservedWord(Set<String> keySet, String value) {
  for (String key in keySet) {
    var s1 = _reservedWords[key], s2 = userReservedWords[key];
    if ((s1 != null && s1.contains(value)) ||
        (s2 != null && s2.contains(value))) {
      return true;
    }
  }
  return false;
}