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

Method new

core/src/lexer.rs:257–259  ·  view source on GitHub ↗

Creates a new `TokenSpan` from its parts.

(token: Token, pos: LineCol, length: usize)

Source from the content-addressed store, hash-verified

255impl TokenSpan {
256 /// Creates a new `TokenSpan` from its parts.
257 fn new(token: Token, pos: LineCol, length: usize) -> Self {
258 Self { token, pos, length }
259 }
260}
261
262/// Tokenizer that breaks an input stream into a sequence of language tokens.

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected