Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ impl StringArena {
self.cache.get(&self.hasher.hash_one(value)).copied()
}

/// Like ['str_ref'] but case-insensitive
pub fn str_ref_no_case(&self, value: &str) -> Option<StrRef> {
self.cache
.get(&self.hasher.hash_one(Ascii::new(value)))
.copied()
}

/// Interns a string using case-insensitive hashing.
///
/// Two strings that differ only in ASCII case will resolve to the same [`StrRef`].
Expand All @@ -67,11 +60,6 @@ impl StringArena {
pub fn get(&self, key: StrRef) -> &str {
&self.slots[key.0]
}

/// Compares two interned strings for case-insensitive ASCII equality.
pub fn eq_ignore_ascii_case(&self, ka: StrRef, kb: StrRef) -> bool {
self.get(ka).eq_ignore_ascii_case(self.get(kb))
}
}

/// An expression node stored in the [`ExprArena`].
Expand Down
7 changes: 3 additions & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,9 @@ pub enum AnalysisError {
#[error("{0}:{1}: expected a record")]
ExpectRecordLiteral(u32, u32),

/// When a custom type (meaning a type not supported by EventQL by default) is used but
/// not registered in the `AnalysisOptions` custom type set.
#[error("{0}:{1}: unsupported custom type '{2}'")]
UnsupportedCustomType(u32, u32, String),
/// When a type is not supported by EventQL.
#[error("{0}:{1}: unknown type '{2}'")]
UnknownType(u32, u32, String),

/// A function was called with the wrong number of arguments.
///
Expand Down
Loading
Loading