MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / lex_invalid

Function lex_invalid

crates/sith_python_parser/src/lexer.rs:1765–1774  ·  view source on GitHub ↗
(source: &str, mode: Mode)

Source from the content-addressed store, hash-verified

1763 }
1764
1765 fn lex_invalid(source: &str, mode: Mode) -> LexerOutput {
1766 let output = lex(source, mode, TextSize::default());
1767
1768 assert!(
1769 !output.errors.is_empty(),
1770 "Expected lexer to generate at least one error for the following source:\n{source}"
1771 );
1772
1773 output
1774 }
1775
1776 fn lex_source(source: &str) -> LexerOutput {
1777 lex_valid(source, Mode::Module, TextSize::default())

Callers 1

test_infinite_loopFunction · 0.85

Calls 1

lexFunction · 0.85

Tested by 1

test_infinite_loopFunction · 0.68