ugly hack to make the docs build

This commit is contained in:
Folkert 2022-07-14 22:15:19 +02:00
parent 632f153b3e
commit b6224a3806
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 10 additions and 1 deletions

View file

@ -56,6 +56,13 @@ impl Scope {
self.lookup_str(ident.as_str(), region)
}
pub fn add_docs_imports(&mut self) {
self.imports
.push(("Dict".into(), Symbol::DICT_DICT, Region::zero()));
self.imports
.push(("Set".into(), Symbol::SET_SET, Region::zero()));
}
pub fn lookup_str(&self, ident: &str, region: Region) -> Result<Symbol, RuntimeError> {
use ContainsIdent::*;