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

Function parse_coordinate

std/src/gfx/mod.rs:42–44  ·  view source on GitHub ↗

Parses an expression that represents a single coordinate.

(scope: &Scope<'_>, narg: u8)

Source from the content-addressed store, hash-verified

40
41/// Parses an expression that represents a single coordinate.
42fn parse_coordinate(scope: &Scope<'_>, narg: u8) -> CallResult<i16> {
43 parse_coordinate_value(scope.get_pos(narg), scope.get_integer(narg))
44}
45
46/// Parses an integer that represents a single coordinate.
47fn parse_coordinate_value(pos: LineCol, i: i32) -> CallResult<i16> {

Callers 1

parse_coordinatesFunction · 0.85

Calls 3

parse_coordinate_valueFunction · 0.85
get_posMethod · 0.80
get_integerMethod · 0.80

Tested by

no test coverage detected