Skip to main content

resolve_generic_call

Function resolve_generic_call 

Source
pub fn resolve_generic_call(
    namespace: &[SmolStr],
    fn_name: &SmolStr,
    type_args: &[TypeExpr],
    span: Span,
    ctx: Ctx,
    state: &mut State<'_>,
) -> (usize, Vec<DataType>)
Expand description

Resolves a call written with type arguments to the function it names and the arguments bound to its type parameters.

namespace is the path in front of the name, empty for a call the file writes unqualified (first<int>(nums)) and the module alias for one it reaches through an import (m::first<int>(nums)).