contains method

  1. @override
bool contains(
  1. String varName, {
  2. bool isPrivate = false,
  3. String? from,
  4. bool recursive = false,
})
override

Implementation

@override
bool contains(String varName,
    {bool isPrivate = false, String? from, bool recursive = false}) {
  if (symbols.containsKey(varName)) {
    if (isPrivate && from != null && !from.startsWith(fullName)) {
      throw HTError.privateMember(varName);
    }
    return true;
  } else if (importedSymbols.containsKey(varName)) {
    return true;
  } else if (recursive && (closure != null)) {
    return closure!.contains(varName, from: from, recursive: recursive);
  }
  return false;
}