MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / make_token

Method make_token

aiscript-lexer/src/lib.rs:331–337  ·  view source on GitHub ↗

Creates a token of the given type using the current lexeme

(&self, kind: TokenType)

Source from the content-addressed store, hash-verified

329
330 // Creates a token of the given type using the current lexeme
331 fn make_token(&self, kind: TokenType) -> Token<'a> {
332 Token {
333 kind,
334 lexeme: &self.source[self.start..self.current],
335 line: self.line,
336 }
337 }
338
339 fn scan_docstring(&mut self) -> Token<'a> {
340 // Skip the opening quotes

Callers 4

scan_docstringMethod · 0.80
scan_numberMethod · 0.80
scan_identifierMethod · 0.80
scan_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected