MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / tokenize

Function tokenize

src/lowertest/src/lib.rs:65–67  ·  view source on GitHub ↗

Converts `s` into a [proc_macro2::TokenStream]

(s: &str)

Source from the content-addressed store, hash-verified

63
64/// Converts `s` into a [proc_macro2::TokenStream]
65pub fn tokenize(s: &str) -> Result<TokenStream, String> {
66 s.parse::<TokenStream>().map_err_to_string_with_causes()
67}
68
69/// Changes `"\"foo\""` to `"foo"`
70pub fn unquote(s: &str) -> String {

Callers 13

reduceFunction · 0.50
test_canonicalize_predFunction · 0.50
test_mfpFunction · 0.50
test_canonicalize_equivFunction · 0.50
test_interpretFunction · 0.50
create_test_enumFunction · 0.50
build_scalarFunction · 0.50
build_relFunction · 0.50
handle_test_commandMethod · 0.50
build_datumFunction · 0.50
build_rowFunction · 0.50
build_scalar_typeFunction · 0.50

Calls 1

Tested by 10

reduceFunction · 0.40
test_canonicalize_predFunction · 0.40
test_mfpFunction · 0.40
test_canonicalize_equivFunction · 0.40
test_interpretFunction · 0.40
create_test_enumFunction · 0.40
build_datumFunction · 0.40
build_rowFunction · 0.40
build_scalar_typeFunction · 0.40
run_multiview_testcaseFunction · 0.40