Skip to content
Open
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
2 changes: 0 additions & 2 deletions src/ast/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,12 @@ pub struct FnCall {
pub vals: RightValList,
}

/// Implementation of helper methods for function calls.
impl FnCall {
/// Returns the fully-qualified function name, including the module prefix
/// if one is present (e.g., `"io::print"`), or just the bare function
/// name otherwise (e.g., `"print"`).
pub fn qualified_name(&self) -> String {
if let Some(module) = &self.module_prefix {
// Combine module prefix and function name with `::` separator.
format!("{module}::{}", self.name)
} else {
self.name.clone()
Expand Down
2 changes: 1 addition & 1 deletion src/ast/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! nodes that appear in variable declarations, function parameters, and
//! return-type annotations.

/// Byte offset (or character index) into the source text.
/// Byte offset into the source text.
/// Used to track where each AST node originated for error reporting.
pub type Pos = usize;

Expand Down