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

Function new_auto_symbol

core/src/lexer.rs:866–868  ·  view source on GitHub ↗

Syntactic sugar to instantiate a `VarRef` without an explicit type annotation.

(name: &str)

Source from the content-addressed store, hash-verified

864
865 /// Syntactic sugar to instantiate a `VarRef` without an explicit type annotation.
866 fn new_auto_symbol(name: &str) -> Token {
867 Token::Symbol(VarRef::new(name, None))
868 }
869
870 #[test]
871 fn test_some_tokens() {

Callers 11

test_some_tokensFunction · 0.85
test_boolean_literalsFunction · 0.85
test_utf8Function · 0.85
test_shebangFunction · 0.85
test_invalid_hashesFunction · 0.85
test_var_typesFunction · 0.85
test_dataFunction · 0.85
do_binary_operator_testFunction · 0.85
test_operator_no_spacesFunction · 0.85
test_parenthesisFunction · 0.85
test_recoverable_errorsFunction · 0.85

Calls

no outgoing calls

Tested by 10

test_some_tokensFunction · 0.68
test_boolean_literalsFunction · 0.68
test_utf8Function · 0.68
test_shebangFunction · 0.68
test_invalid_hashesFunction · 0.68
test_var_typesFunction · 0.68
test_dataFunction · 0.68
test_operator_no_spacesFunction · 0.68
test_parenthesisFunction · 0.68
test_recoverable_errorsFunction · 0.68