MCPcopy Index your code
hub / github.com/endbasic/endbasic / get_pos

Method get_pos

core/src/callable.rs:958–960  ·  view source on GitHub ↗

Returns the source position of the argument at `arg`. `arg` is the logical argument index, matching the `N` in `scope.get_*(N)`.

(&self, arg: u8)

Source from the content-addressed store, hash-verified

956 ///
957 /// `arg` is the logical argument index, matching the `N` in `scope.get_*(N)`.
958 pub fn get_pos(&self, arg: u8) -> LineCol {
959 self.arg_linecols[usize::from(arg)]
960 }
961
962 /// Gets the type tag of the argument at `arg`.
963 pub fn get_type(&self, arg: u8) -> VarArgTag {

Callers 15

async_execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
parse_bound_argsFunction · 0.80
findMethod · 0.80
assign_datumMethod · 0.80
execMethod · 0.80
execMethod · 0.80
async_execMethod · 0.80
execMethod · 0.80
get_colorMethod · 0.80

Calls

no outgoing calls

Tested by 2

execMethod · 0.64
execMethod · 0.64