contains method
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;
}